rasmus          Thu, 16 Jul 2009 00:04:59 +0000

URL: http://svn.php.net/viewvc?view=revision&revision=284159

Changed paths:
        U   php/php-src/branches/PHP_5_3/ext/interbase/interbase.c

Log:
Buffer handling fixes


Modified: php/php-src/branches/PHP_5_3/ext/interbase/interbase.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/interbase/interbase.c      2009-07-16 
00:03:44 UTC (rev 284158)
+++ php/php-src/branches/PHP_5_3/ext/interbase/interbase.c      2009-07-16 
00:04:59 UTC (rev 284159)
@@ -861,8 +861,8 @@

 int _php_ibase_attach_db(char **args, int *len, long *largs, isc_db_handle *db 
TSRMLS_DC)
 {
-       short i, dpb_len, buf_len = 256;
-       char dpb_buffer[256] = { isc_dpb_version1 }, *dpb;
+       short i, dpb_len, buf_len = 257-2;  /* version byte at the front, and a 
null at the end */
+       char dpb_buffer[257] = { isc_dpb_version1, 0 }, *dpb;

        dpb = dpb_buffer + 1;


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

Reply via email to