From 780625c35746a71a40163afa43a03b84b8bb8943 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 18 Sep 2011 23:32:57 +0000 Subject: [PATCH] uhttpd: fix bad pointer use in previous commit SVN-Revision: 28256 --- package/uhttpd/src/uhttpd-cgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/uhttpd/src/uhttpd-cgi.c b/package/uhttpd/src/uhttpd-cgi.c index 2f94fe26f5..16bfda7dba 100644 --- a/package/uhttpd/src/uhttpd-cgi.c +++ b/package/uhttpd/src/uhttpd-cgi.c @@ -42,7 +42,7 @@ static struct http_response * uh_cgi_header_parse(char *buf, int len, int *off) bufptr = &buf[0]; - for( pos = 0; pos < off; pos++ ) + for( pos = 0; pos < *off; pos++ ) { if( !hdrname && (buf[pos] == ':') ) { -- 2.30.2