summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-04-25 09:35:11 +0100
committerNicholas Clark <nick@ccl4.org>2010-04-25 09:35:11 +0100
commit8e6497b6389d5f941931c119402888bdb9fc59fc (patch)
tree4eba68cacac7e0af63e437fb34df0cb8bd25a655
parentdb4b3a1d2c56c299e29a8bc6aa4d010bf566e9fc (diff)
downloadperl-8e6497b6389d5f941931c119402888bdb9fc59fc.tar.gz
More defensive definition of memEQs().
-rw-r--r--handy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index 1ff7fde5b9..b40deba230 100644
--- a/handy.h
+++ b/handy.h
@@ -404,7 +404,7 @@ C<strncmp>).
#endif
#define memEQs(s1, l, s2) \
- (sizeof(s2)-1 == l && memEQ(s1, (s2 ""), (sizeof(s2)-1)))
+ (sizeof(s2)-1 == l && memEQ(s1, ("" s2 ""), (sizeof(s2)-1)))
#define memNEs(s1, l, s2) !memEQs(s1, l, s2)
/*