From 1340a833cffd06bd44dd74239055701b3c208e01 Mon Sep 17 00:00:00 2001 From: gil Date: Tue, 3 May 2016 23:43:02 +0300 Subject: [PATCH] fixing the string compare function --- rmutil/strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmutil/strings.c b/rmutil/strings.c index eb3ae0a..dca50d9 100644 --- a/rmutil/strings.c +++ b/rmutil/strings.c @@ -27,7 +27,7 @@ int RMUtil_StringEquals(RedisModuleString *s1, RedisModuleString *s2) { c1 = RedisModule_StringPtrLen(s1, &l1); c2 = RedisModule_StringPtrLen(s2, &l2); - return strncasecmp(c1, c2, MIN(l1,l2)) == 0; + return strcmp(c1, c2) == 0; } void RMUtil_StringToLower(RedisModuleString *s) {