- Fix null-termination problem

This commit is contained in:
Derick Rethans 2002-04-14 08:49:57 +00:00
parent d5158c20a4
commit 069d83c68a

View File

@ -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 {