diff options
author | Derick Rethans <derick@php.net> | 2002-04-14 08:49:57 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2002-04-14 08:49:57 +0000 |
commit | 069d83c68a626dfbb5f87b3a4064576f4a32a59b (patch) | |
tree | bc61c6385c9c984265f3774b72f48c072cb573b0 /ext/zip/zip.c | |
parent | d5158c20a47509c54f4635fb7ecf7e8d88ca5c79 (diff) | |
download | php-git-069d83c68a626dfbb5f87b3a4064576f4a32a59b.tar.gz |
- Fix null-termination problem
Diffstat (limited to 'ext/zip/zip.c')
-rw-r--r-- | ext/zip/zip.c | 1 |
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 { |