From: Wilfried Göesgens Date: Sun, 21 Sep 2008 20:43:44 +0000 (+0000) Subject: * in higher optimization levels the gcc CPP fails to extract the HKEY macro. thus... X-Git-Tag: v7.86~1923 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a68de859812752702c9217937bd549b5b431cd62 * in higher optimization levels the gcc CPP fails to extract the HKEY macro. thus do it by hand. --- diff --git a/webcit/cookie_conversion.c b/webcit/cookie_conversion.c index e891bccc6..9bd90ca54 100644 --- a/webcit/cookie_conversion.c +++ b/webcit/cookie_conversion.c @@ -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, "");