summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/uhttpd
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-19 13:36:17 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-19 13:36:17 +0000
commit7740fd666589d0422359e4fa7b95eebb9ad8b7e5 (patch)
treee39c47404632b80a72ffead30dd7ad20e9411172 /contrib/package/uhttpd
parent008fbe53e3cfb0984ff7521ccb3ea8d568876e06 (diff)
uhttpd: fix off-by-one in last commit
Diffstat (limited to 'contrib/package/uhttpd')
-rw-r--r--contrib/package/uhttpd/src/uhttpd-cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/package/uhttpd/src/uhttpd-cgi.c b/contrib/package/uhttpd/src/uhttpd-cgi.c
index 93caf5add..7c4703759 100644
--- a/contrib/package/uhttpd/src/uhttpd-cgi.c
+++ b/contrib/package/uhttpd/src/uhttpd-cgi.c
@@ -15,7 +15,7 @@ static struct http_response * uh_cgi_header_parse(char *buf, int len, int *off)
if( ((bufptr = strfind(buf, len, "\r\n\r\n", 4)) != NULL) ||
((bufptr = strfind(buf, len, "\n\n", 2)) != NULL)
) {
- *off = (int)(bufptr - buf) + ((bufptr[1] == '\r') ? 4 : 2);
+ *off = (int)(bufptr - buf) + ((bufptr[0] == '\r') ? 4 : 2);
memset(&res, 0, sizeof(res));