cvs: php4 /ext/odbc php_odbc.c
| From: | Dan Kalowsky | Date: | Wed, 30 Jan 2002 21:54:58 +0000 |
| Subject: | cvs: php4 /ext/odbc php_odbc.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9217@lists.php.net to get a copy of this message | ||
kalowsky Wed Jan 30 16:54:58 2002 EDT
Modified files:
/php4/ext/odbc php_odbc.c
Log:
Fix for bug #14803
Index: php4/ext/odbc/php_odbc.c
diff -u php4/ext/odbc/php_odbc.c:1.114 php4/ext/odbc/php_odbc.c:1.115
--- php4/ext/odbc/php_odbc.c:1.114 Mon Jan 21 09:11:17 2002
+++ php4/ext/odbc/php_odbc.c Wed Jan 30 16:54:54 2002
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_odbc.c,v 1.114 2002/01/21 14:11:17 kalowsky Exp $ */
+/* $Id: php_odbc.c,v 1.115 2002/01/30 21:54:54 kalowsky Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1058,7 +1058,7 @@
ZEND_FETCH_RESOURCE(result, odbc_result *, pv_res, -1, "ODBC result", le_result);
rc = SQLGetInfo(result->conn_ptr->hdbc,SQL_MAX_CURSOR_NAME_LEN,
- (void *)&max_len,0,&len);
+ (void *)&max_len,sizeof(max_len),&len);
if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) {
RETURN_FALSE;
}