diff options
author | Jakub Skopal <riffraff@php.net> | 1999-11-08 20:57:59 +0000 |
---|---|---|
committer | Jakub Skopal <riffraff@php.net> | 1999-11-08 20:57:59 +0000 |
commit | ce8e31be71370f68a76a7fe952260441aabe9f61 (patch) | |
tree | cbafb497a40fd1d70e24a1c805d7566146ec9f15 | |
parent | ecf83739f43e8e97822bb0faecc34e1db3e05e8a (diff) | |
download | php-git-ce8e31be71370f68a76a7fe952260441aabe9f61.tar.gz |
"sybase" is definitelly six characters long :-)
-rw-r--r-- | ext/sybase_ct/php_sybase_ct.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/sybase_ct/php_sybase_ct.c b/ext/sybase_ct/php_sybase_ct.c index 97fddccab8..7c388108cc 100644 --- a/ext/sybase_ct/php_sybase_ct.c +++ b/ext/sybase_ct/php_sybase_ct.c @@ -398,7 +398,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent) switch(ARG_COUNT(ht)) { case 0: /* defaults */ host=user=passwd=NULL; - hashed_details_length=5+3; + hashed_details_length=6+3; hashed_details = (char *) emalloc(hashed_details_length+1); strcpy(hashed_details,"sybase___"); break; @@ -411,7 +411,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent) convert_to_string(yyhost); host = yyhost->value.str.val; user=passwd=NULL; - hashed_details_length = yyhost->value.str.len+5+3; + hashed_details_length = yyhost->value.str.len+6+3; hashed_details = (char *) emalloc(hashed_details_length+1); sprintf(hashed_details,"sybase_%s__",yyhost->value.str.val); } @@ -427,7 +427,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent) host = yyhost->value.str.val; user = yyuser->value.str.val; passwd=NULL; - hashed_details_length = yyhost->value.str.len+yyuser->value.str.len+5+3; + hashed_details_length = yyhost->value.str.len+yyuser->value.str.len+6+3; hashed_details = (char *) emalloc(hashed_details_length+1); sprintf(hashed_details,"sybase_%s_%s_",yyhost->value.str.val,yyuser->value.str.val); } @@ -444,7 +444,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent) host = yyhost->value.str.val; user = yyuser->value.str.val; passwd = yypasswd->value.str.val; - hashed_details_length = yyhost->value.str.len+yyuser->value.str.len+yypasswd->value.str.len+5+3; + hashed_details_length = yyhost->value.str.len+yyuser->value.str.len+yypasswd->value.str.len+6+3; hashed_details = (char *) emalloc(hashed_details_length+1); sprintf(hashed_details,"sybase_%s_%s_%s",yyhost->value.str.val,yyuser->value.str.val,yypasswd->value.str.val); /* SAFE */ } |