1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/www/flood/files/patch-flood_round_robin.c
2004-04-07 03:05:52 +00:00

12 lines
426 B
C

--- flood_round_robin.c.orig Wed Apr 7 11:59:12 2004
+++ flood_round_robin.c Wed Apr 7 11:59:42 2004
@@ -903,7 +903,7 @@
/* FIXME: This algorithm sucks. I need to be shot for writing such
* atrocious code. Grr. */
- cookieheader = strstr(resp->rbuf, "Set-Cookie: ");
+ cookieheader = strnstr(resp->rbuf, "Set-Cookie: ", resp->rbufsize);
if (cookieheader)
{
/* Point to the value */