diff options
| author | Derick Rethans <derick@php.net> | 2002-04-14 08:50:22 +0000 |
|---|---|---|
| committer | Derick Rethans <derick@php.net> | 2002-04-14 08:50:22 +0000 |
| commit | 3d77a3087c4b72e396530ab5cdb2de5e1f54e255 (patch) | |
| tree | 29f4706f1fc983d70bba25aa2e558b60f75d8b02 /ext | |
| parent | d7f90433782d2deec6c3c1d0e4e91b3ad4fb0e5d (diff) | |
| download | php-git-3d77a3087c4b72e396530ab5cdb2de5e1f54e255.tar.gz | |
- MFH: Fix NULL-termination issue
Diffstat (limited to 'ext')
| -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 { |
