summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-04-14 08:49:57 +0000
committerDerick Rethans <derick@php.net>2002-04-14 08:49:57 +0000
commit069d83c68a626dfbb5f87b3a4064576f4a32a59b (patch)
treebc61c6385c9c984265f3774b72f48c072cb573b0
parentd5158c20a47509c54f4635fb7ecf7e8d88ca5c79 (diff)
downloadphp-git-069d83c68a626dfbb5f87b3a4064576f4a32a59b.tar.gz
- Fix null-termination problem
-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 {