From 65f951b5613c6e47945c5c0e4eb572a9086d8973 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Fri, 8 May 2009 10:00:09 +0000 Subject: [PATCH] Missing check --- ext/standard/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.50.1