From: Jo-Philipp Wich Date: Sun, 18 Sep 2011 23:34:25 +0000 (+0000) Subject: uhttpd: fix bad pointer use in previous commit X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=32ae896d0070a4db8061e179b3cdfe314ab4530a;p=openwrt%2Fstaging%2Fneocturne.git uhttpd: fix bad pointer use in previous commit SVN-Revision: 28257 --- 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] == ':') ) {