cvs: /php4/ext/sybase_ct php_sybase_ct.c

From: Date: Mon, 08 Nov 1999 20:58:30 +0000
Subject: cvs: /php4/ext/sybase_ct php_sybase_ct.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-5972@lists.php.net to get a copy of this message
riffraff Mon Nov 8 15:58:30 1999 EDT Modified files: /php4/ext/sybase_ct php_sybase_ct.c Log: "sybase" is definitelly six characters long :-) Index: php4/ext/sybase_ct/php_sybase_ct.c diff -u php4/ext/sybase_ct/php_sybase_ct.c:1.6 php4/ext/sybase_ct/php_sybase_ct.c:1.7 --- php4/ext/sybase_ct/php_sybase_ct.c:1.6 Tue Oct 12 11:00:10 1999 +++ php4/ext/sybase_ct/php_sybase_ct.c Mon Nov 8 15:57:59 1999 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_sybase_ct.c,v 1.6 1999/10/12 15:00:10 thies Exp $ */ +/* $Id: php_sybase_ct.c,v 1.7 1999/11/08 20:57:59 riffraff Exp $ */ #include "php.h" @@ -398,7 +398,7 @@ 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 @@ 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 @@ 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 @@ 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 */ }

« previous php.version4 (#5972) next »