summaryrefslogtreecommitdiff
path: root/ext/gd
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2016-10-13 11:24:03 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2016-10-13 11:25:11 +0200
commitb8fab503fec8288e65d571f0277b078b8f7cebf3 (patch)
tree1ab050fbd545c5f8d3259e4f61818ab91342ae6f /ext/gd
parentce3e792c2c4c251fd5963a36af5ad4a9dd875085 (diff)
parentcc08cbc84d46933c1e9e0149633f1ed5d19e45e9 (diff)
downloadphp-git-b8fab503fec8288e65d571f0277b078b8f7cebf3.tar.gz
Merge branch 'PHP-5.6' into PHP-7.0
Diffstat (limited to 'ext/gd')
-rw-r--r--ext/gd/libgd/gd_io_dp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/libgd/gd_io_dp.c b/ext/gd/libgd/gd_io_dp.c
index bfeb4cb4bb..4dcedde8cc 100644
--- a/ext/gd/libgd/gd_io_dp.c
+++ b/ext/gd/libgd/gd_io_dp.c
@@ -237,7 +237,7 @@ static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len)
if (remain >= len) {
rlen = len;
} else {
- if (remain == 0) {
+ if (remain <= 0) {
return EOF;
}
rlen = remain;