projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
4216782
)
fix php_http_locate_bin_eol(()
author
Michael Wallner
<mike@php.net>
Mon, 30 Jul 2012 18:33:55 +0000
(18:33 +0000)
committer
Michael Wallner
<mike@php.net>
Mon, 30 Jul 2012 18:33:55 +0000
(18:33 +0000)
php_http_misc.h
patch
|
blob
|
history
diff --git
a/php_http_misc.h
b/php_http_misc.h
index 70dc090ab62aaf6f5e8b96d15f632b0d41da1748..972ba92855c3e99db3b2041c1ea27513267aeeed 100644
(file)
--- a/
php_http_misc.h
+++ b/
php_http_misc.h
@@
-137,10
+137,10
@@
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 ? ((eol[0] == '\r' && eol[1] == '\n') ? 2 : 1) : 0
;
+ *eol_len =
((eol[0] == '\r' && eol[1] == '\n') ? 2 : 1)
;
}
return eol;
}