]> granicus.if.org Git - php/commitdiff
"sybase" is definitelly six characters long :-)
authorJakub Skopal <riffraff@php.net>
Mon, 8 Nov 1999 20:57:59 +0000 (20:57 +0000)
committerJakub Skopal <riffraff@php.net>
Mon, 8 Nov 1999 20:57:59 +0000 (20:57 +0000)
ext/sybase_ct/php_sybase_ct.c

index 97fddccab83f7970df3933dc0b7ab04bc78efde1..7c388108cc7970c82c77ac2d390e54e05bc0f761 100644 (file)
@@ -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 */
                        }