svn: php/php-src/branches/PHP_5_2/ext/interbase/
| From: | Rasmus Lerdorf | Date: | Wed, 15 Jul 2009 23:50:59 +0000 |
| Subject: | svn: php/php-src/branches/PHP_5_2/ext/interbase/ | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-59482@lists.php.net to get a copy of this message | ||
rasmus Wed, 15 Jul 2009 23:50:59 +0000
URL: http://svn.php.net/viewvc?view=revision&revision=284152
Changed paths:
U php/php-src/branches/PHP_5_2/ext/interbase/interbase.c
Log:
Fix the buffer handling here
Modified: php/php-src/branches/PHP_5_2/ext/interbase/interbase.c
===================================================================
--- php/php-src/branches/PHP_5_2/ext/interbase/interbase.c 2009-07-15 23:43:27 UTC (rev 284151)
+++ php/php-src/branches/PHP_5_2/ext/interbase/interbase.c 2009-07-15 23:50:59 UTC (rev 284152)
@@ -588,8 +588,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;