[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] cvs: pecl /zip php_zip.c
From:       "Pierre-Alain Joye" <pajoye () php ! net>
Date:       2006-02-28 21:39:42
Message-ID: cvspajoye1141162782 () cvsserver
[Download RAW message or body]

pajoye		Tue Feb 28 21:39:42 2006 UTC

  Modified files:              
    /pecl/zip	php_zip.c 
  Log:
  - init the buffer len to 0 not -1, fix bad alloc
  
  
http://cvs.php.net/viewcvs.cgi/pecl/zip/php_zip.c?r1=1.17&r2=1.18&diff_format=u
Index: pecl/zip/php_zip.c
diff -u pecl/zip/php_zip.c:1.17 pecl/zip/php_zip.c:1.18
--- pecl/zip/php_zip.c:1.17	Tue Feb 28 21:34:37 2006
+++ pecl/zip/php_zip.c	Tue Feb 28 21:39:42 2006
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: php_zip.c,v 1.17 2006/02/28 21:34:37 helly Exp $ */
+/* $Id: php_zip.c,v 1.18 2006/02/28 21:39:42 pajoye Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -600,7 +600,7 @@
 PHP_FUNCTION(zip_entry_read)
 {
 	zval * zip_entry;
-	int len = -1, mode;
+	int len = 0, mode;
 	zip_read_rsrc * zr_rsrc;
 
 	char *buffer;
@@ -1267,7 +1267,7 @@
 	php_info_print_table_start();
 	{
 		php_info_print_table_row(2, "Zip", "enabled");
-		php_info_print_table_row(2, "$Id: php_zip.c,v 1.17 2006/02/28 21:34:37 helly Exp $", "enabled");
+		php_info_print_table_row(2, "$Id: php_zip.c,v 1.18 2006/02/28 21:39:42 pajoye Exp $", "enabled");
 		php_info_print_table_row(2, "Libzip version", "0.6.1");
 	}
 	php_info_print_table_end();

-- 
PECL CVS Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic