From c3aaed076e9439cf8ec12f02474746da56796bba Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 13 Dec 2012 15:44:39 +0000 Subject: [PATCH] fix use of uninitialised value --- php_http_misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_http_misc.h b/php_http_misc.h index 67fc711..d8fa0c9 100644 --- a/php_http_misc.h +++ b/php_http_misc.h @@ -137,7 +137,7 @@ static inline const char *php_http_locate_bin_eol(const char *bin, size_t len, i { const char *eol; - for (eol = bin; eol - bin <= len; ++eol) { + for (eol = bin; eol - bin < len; ++eol) { if (*eol == '\r' || *eol == '\n') { if (eol_len) { *eol_len = ((eol[0] == '\r' && eol[1] == '\n') ? 2 : 1); -- 2.30.2