com php-src: fix condition: ext/standard/ftp_fopen_wrapper .c

From: Date: Fri, 19 Sep 2014 07:09:20 +0000
Subject: com php-src: fix condition: ext/standard/ftp_fopen_wrapper .c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81763@lists.php.net to get a copy of this message
Commit: f25f672916500a209f98ec6b7b342794a065ea7f Author: Anatol Belski <ab@php.net> Fri, 19 Sep 2014 09:09:20 +0200 Parents: 4d60f236302fdd792f6c60ae2837fe8b4e8e7050 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f25f672916500a209f98ec6b7b342794a065ea7f Log: fix condition Changed paths: M ext/standard/ftp_fopen_wrapper.c Diff: diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index cb96c19..260bb5f 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -636,7 +636,7 @@ static size_t php_ftp_dirstream_read(php_stream *stream, char *buf, size_t count /* Trim off trailing whitespace characters */ tmp_len--; - while (tmp_len >= 0 && + while (tmp_len > 0 && (ent->d_name[tmp_len] == '\n' || ent->d_name[tmp_len] == '\r' || ent->d_name[tmp_len] == '\t' || ent->d_name[tmp_len] == ' ')) { ent->d_name[tmp_len--] = '\0';

« previous php.cvs (#81763) next »