cvs: php-src /ext/standard file.c

From: Date: Fri, 08 May 2009 10:00:09 +0000
Subject: cvs: php-src /ext/standard file.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-57636@lists.php.net to get a copy of this message
lbarnaud Fri May 8 10:00:09 2009 UTC Modified files: /php-src/ext/standard file.c Log: Missing check http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.c?r1=1.543&r2=1.544&diff_format=u Index: php-src/ext/standard/file.c diff -u php-src/ext/standard/file.c:1.543 php-src/ext/standard/file.c:1.544 --- php-src/ext/standard/file.c:1.543 Fri May 8 09:50:11 2009 +++ php-src/ext/standard/file.c Fri May 8 10:00:09 2009 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.543 2009/05/08 09:50:11 lbarnaud Exp $ */ +/* $Id: file.c,v 1.544 2009/05/08 10:00:09 lbarnaud Exp $ */ /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ @@ -853,7 +853,7 @@ } 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)) {

« previous php.cvs (#57636) next »