com php-src: Fixed key length: ext/odbc/php_odbc.c

From: Date: Fri, 16 Jan 2015 05:56:21 +0000
Subject: com php-src: Fixed key length: ext/odbc/php_odbc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84128@lists.php.net to get a copy of this message
Commit: af6119cf6c723514a1bab4887365eceaaf28f4d1 Author: Xinchen Hui <laruence@php.net> Fri, 16 Jan 2015 00:56:21 -0500 Parents: 584a43d601beb8e22da5b76c018d2e37cb23bda8 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=af6119cf6c723514a1bab4887365eceaaf28f4d1 Log: Fixed key length Changed paths: M ext/odbc/php_odbc.c Diff: diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index f9299f0..0d075ea 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -1555,8 +1555,8 @@ PHP_FUNCTION(odbc_data_source) array_init(return_value); - add_assoc_string_ex(return_value, "server", sizeof("server"), server_name); - add_assoc_string_ex(return_value, "description", sizeof("description"), desc); + add_assoc_string_ex(return_value, "server", sizeof("server")-1, server_name); + add_assoc_string_ex(return_value, "description", sizeof("description")-1, desc); } /* }}} */

« previous php.cvs (#84128) next »