* in higher optimization levels the gcc CPP fails to extract the HKEY macro. thus...
authorWilfried Göesgens <willi@citadel.org>
Sun, 21 Sep 2008 20:43:44 +0000 (20:43 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 21 Sep 2008 20:43:44 +0000 (20:43 +0000)
webcit/cookie_conversion.c

index e891bccc625f537fb0b21c550318bf4df13d5cbb..9bd90ca54be190929c95f1c88b6c1e778569d058 100644 (file)
@@ -86,7 +86,7 @@ void cookie_to_stuff(StrBuf *cookie, int *session,
        char buf[SIZ];
        int i, len;
 
-       if (strncmp(ChrPtr(cookie), HKEY("webcit=")) == 0)
+       if (strncmp(ChrPtr(cookie), "webcit=", (sizeof("webcit=") - 1)) == 0)
                StrBufCutLeft(cookie, 7);
 
        strcpy(buf, "");