summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-04-14 08:50:22 +0000
committerDerick Rethans <derick@php.net>2002-04-14 08:50:22 +0000
commit3d77a3087c4b72e396530ab5cdb2de5e1f54e255 (patch)
tree29f4706f1fc983d70bba25aa2e558b60f75d8b02 /ext
parentd7f90433782d2deec6c3c1d0e4e91b3ad4fb0e5d (diff)
downloadphp-git-3d77a3087c4b72e396530ab5cdb2de5e1f54e255.tar.gz
- MFH: Fix NULL-termination issue
Diffstat (limited to 'ext')
-rw-r--r--ext/zip/zip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/zip/zip.c b/ext/zip/zip.c
index 7efb16db7b..506552207c 100644
--- a/ext/zip/zip.c
+++ b/ext/zip/zip.c
@@ -282,6 +282,7 @@ PHP_FUNCTION(zip_entry_read)
buf = emalloc(len + 1);
ret = zzip_read(entry->fp, buf, len);
+ buf[ret] = 0;
if (ret == 0) {
RETURN_FALSE;
} else {