From: Jakub Skopal Date: Mon, 8 Nov 1999 20:57:59 +0000 (+0000) Subject: "sybase" is definitelly six characters long :-) X-Git-Tag: php-4.0b3_RC2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce8e31be71370f68a76a7fe952260441aabe9f61;p=php "sybase" is definitelly six characters long :-) --- 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 */ }