]> granicus.if.org Git - php/commitdiff
Fix for bug #14803
authorDan Kalowsky <kalowsky@php.net>
Wed, 30 Jan 2002 21:54:54 +0000 (21:54 +0000)
committerDan Kalowsky <kalowsky@php.net>
Wed, 30 Jan 2002 21:54:54 +0000 (21:54 +0000)
ext/odbc/php_odbc.c

index e2be83169af2a4736624e4e2ad6ee022befa9567..dddf743ab582e24613a7a48375fb50d789a94520 100644 (file)
@@ -1058,7 +1058,7 @@ PHP_FUNCTION(odbc_cursor)
        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;
        }