summaryrefslogtreecommitdiff
path: root/uhttpd-cgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'uhttpd-cgi.c')
-rw-r--r--uhttpd-cgi.c2
1 files changed, 1 insertions, 1 deletions
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] == ':') )
{