diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-18 23:34:25 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-18 23:34:25 +0000 |
commit | 32ae896d0070a4db8061e179b3cdfe314ab4530a (patch) | |
tree | 964f403af7ba4f2ff48a94242633f995dc38c514 /package/uhttpd | |
parent | 12bbe8b2af41a95514a40fc7acc604d1e906ae7e (diff) | |
download | mtk-20170518-32ae896d0070a4db8061e179b3cdfe314ab4530a.zip mtk-20170518-32ae896d0070a4db8061e179b3cdfe314ab4530a.tar.gz mtk-20170518-32ae896d0070a4db8061e179b3cdfe314ab4530a.tar.bz2 |
uhttpd: fix bad pointer use in previous commit
SVN-Revision: 28257
Diffstat (limited to 'package/uhttpd')
-rw-r--r-- | package/uhttpd/src/uhttpd-cgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/uhttpd/src/uhttpd-cgi.c b/package/uhttpd/src/uhttpd-cgi.c index 2f94fe26..16bfda7 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] == ':') ) { |