diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-08-10 00:43:50 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-08-10 00:43:50 +0000 |
commit | b29b59dcd2948787695ccd0f1ff7d99750304ebb (patch) | |
tree | e8dea82a8c2839ffd2837cf4fea2bab18e56f211 /ext/sybase/php_sybase_db.c | |
parent | e9b8f373412a0017e74b7a4766b3ed78219afd25 (diff) | |
download | php-git-b29b59dcd2948787695ccd0f1ff7d99750304ebb.tar.gz |
Fixed bug #42242 (sybase_connect() crashes)
Diffstat (limited to 'ext/sybase/php_sybase_db.c')
-rw-r--r-- | ext/sybase/php_sybase_db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sybase/php_sybase_db.c b/ext/sybase/php_sybase_db.c index 1f6bdfd5b4..467f256acc 100644 --- a/ext/sybase/php_sybase_db.c +++ b/ext/sybase/php_sybase_db.c @@ -355,7 +355,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent) host = Z_STRVAL_PP(yyhost); user = Z_STRVAL_PP(yyuser); passwd = Z_STRVAL_PP(yypasswd); - spprintf(&hashed_details, 0, "sybase_%s_%s_%s__", Z_STRVAL_PP(yyhost), Z_STRVAL_PP(yyuser), Z_STRVAL_PP(yypasswd)); + hashed_details_length = spprintf(&hashed_details, 0, "sybase_%s_%s_%s__", Z_STRVAL_PP(yyhost), Z_STRVAL_PP(yyuser), Z_STRVAL_PP(yypasswd)); } break; case 4: { |