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 1a6c6ad..855a72f 100644
--- a/uhttpd-cgi.c
+++ b/uhttpd-cgi.c
@@ -68,7 +68,7 @@ static struct http_response * uh_cgi_header_parse(char *buf, int len, int *off)
if( (pos < len) && (buf[pos] == '\n') )
pos++;
- if( pos < len )
+ if( pos <= len )
{
if( (hdrcount + 1) < array_size(res.headers) )
{