From 659b5fdc5084938793985e407178d72b9dcc23c7 Mon Sep 17 00:00:00 2001 From: jow Date: Sun, 18 Sep 2011 23:34:25 +0000 Subject: [package] uhttpd: fix bad pointer use in previous commit git-svn-id: svn://svn.openwrt.org/openwrt/trunk/package/uhttpd/src@28257 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- uhttpd-cgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uhttpd-cgi.c') diff --git a/uhttpd-cgi.c b/uhttpd-cgi.c index 2f94fe2..16bfda7 100644 --- a/uhttpd-cgi.c +++ b/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] == ':') ) { -- cgit v1.2.1