From a68de859812752702c9217937bd549b5b431cd62 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 21 Sep 2008 20:43:44 +0000 Subject: [PATCH] * in higher optimization levels the gcc CPP fails to extract the HKEY macro. thus do it by hand. --- webcit/cookie_conversion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ""); -- 2.30.2