cvs: php4 /ext/zip zip.c
| From: | Derick Rethans | Date: | Sun, 14 Apr 2002 08:49:58 +0000 |
| Subject: | cvs: php4 /ext/zip zip.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11132@lists.php.net to get a copy of this message | ||
derick Sun Apr 14 04:49:58 2002 EDT
Modified files:
/php4/ext/zip zip.c
Log:
- Fix null-termination problem
Index: php4/ext/zip/zip.c
diff -u php4/ext/zip/zip.c:1.30 php4/ext/zip/zip.c:1.31
--- php4/ext/zip/zip.c:1.30 Sat Apr 6 12:28:58 2002
+++ php4/ext/zip/zip.c Sun Apr 14 04:49:57 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zip.c,v 1.30 2002/04/06 17:28:58 derick Exp $ */
+/* $Id: zip.c,v 1.31 2002/04/14 08:49:57 derick Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -282,6 +282,7 @@
buf = emalloc(len + 1);
ret = zzip_read(entry->fp, buf, len);
+ buf[ret] = 0;
if (ret == 0) {
RETURN_FALSE;
} else {