freebsd-ports/devel/cgilib/files/patch-cgi.c
Dmitry Sivachenko 05d695f8c6 Update to 0.7;
Fix segfault when using a HTML 4.0 <FORM>'s element <SELECT>
with attribute MULTIPLE.

PR:		146618
Submitted by:	Byron Young <bkyoung74q9@yahoo.com>
2010-05-19 14:42:52 +00:00

11 lines
378 B
C

--- cgi.c.orig 2010-05-19 18:38:27.000000000 +0400
+++ cgi.c 2010-05-19 18:38:55.000000000 +0400
@@ -641,7 +641,7 @@ s_cgi *cgiReadVariables ()
free (result[k]->value);
free (value);
result[k]->value = sptr;
- cgiDebugOutput (1, "%s: %s", result[i]->name, result[i]->value);
+ cgiDebugOutput (1, "%s: %s", result[k]->name, result[k]->value);
}
}
cp = ++ip;