diff options
author | Julien Pauli <jpauli@php.net> | 2016-11-17 11:33:36 +0100 |
---|---|---|
committer | Julien Pauli <jpauli@php.net> | 2016-11-17 11:33:36 +0100 |
commit | 49030f2a25c11c537322903e172d732bfdc4cfff (patch) | |
tree | eb6c76f184efab6b3bc62e13b0ee05b21aab7c61 /ext/standard/http_fopen_wrapper.c | |
parent | eba5e276c75ce5855b2d3246991c3757417c914b (diff) | |
download | php-git-49030f2a25c11c537322903e172d732bfdc4cfff.tar.gz |
Improvement for bug73297
Diffstat (limited to 'ext/standard/http_fopen_wrapper.c')
-rw-r--r-- | ext/standard/http_fopen_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 88a1091e38..ed6adc0039 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -708,7 +708,7 @@ finish: while ( !php_stream_eof(stream) && php_stream_get_line(stream, tmp_line, sizeof(tmp_line) - 1, &tmp_line_len) != NULL - && ( tmp_line_len < 6 || strncasecmp(tmp_line, "HTTP/1", 6) ) + && ( tmp_line_len < sizeof("HTTP/1") - 1 || strncasecmp(tmp_line, "HTTP/1", sizeof("HTTP/1") - 1) ) ); if (tmp_line_len > 9) { |