From: Arnaud Le Blanc Date: Fri, 8 May 2009 10:00:09 +0000 (+0000) Subject: Missing check X-Git-Tag: php-5.4.0alpha1~191^2~3724 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65f951b5613c6e47945c5c0e4eb572a9086d8973;p=php Missing check --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 4345349ddf..38e18ea9f5 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -853,7 +853,7 @@ uparse_eol: } else { do { int windows_eol = 0; - if (eol_marker == '\n' && *(p - 1) == '\r') { + if (p != (UChar*)target_buf && eol_marker == '\n' && *(p - 1) == '\r') { windows_eol++; } if (skip_blank_lines && !(p-s-windows_eol)) {