aboutsummaryrefslogtreecommitdiffstats
path: root/package/uhttpd/src/uhttpd-cgi.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-09-18 23:34:25 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-09-18 23:34:25 +0000
commita3c71fc56c1c31e01e17a7f3d82c595fc274cb20 (patch)
treef2a053817930cbcefe982dca709bba4104b38de9 /package/uhttpd/src/uhttpd-cgi.c
parent65866b3bba7edb9612f147f390ad5d0bce767df4 (diff)
downloadupstream-a3c71fc56c1c31e01e17a7f3d82c595fc274cb20.tar.gz
upstream-a3c71fc56c1c31e01e17a7f3d82c595fc274cb20.tar.bz2
upstream-a3c71fc56c1c31e01e17a7f3d82c595fc274cb20.zip
[package] uhttpd: fix bad pointer use in previous commit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28257 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/uhttpd/src/uhttpd-cgi.c')
-rw-r--r--package/uhttpd/src/uhttpd-cgi.c2
1 files changed, 1 insertions, 1 deletions
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] == ':') )
{