]> granicus.if.org Git - php/commitdiff
fix ext/interbase build
authorAntony Dovgal <tony2001@php.net>
Fri, 16 Feb 2007 07:11:33 +0000 (07:11 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 16 Feb 2007 07:11:33 +0000 (07:11 +0000)
ext/interbase/interbase.c

index fb6a2c1143ce0e2c8fd5fcc413f1772b7d46e3e3..c876132b232b7a2c88ce83a09a295071475a3e32 100644 (file)
@@ -3048,9 +3048,9 @@ static void _php_ibase_user(INTERNAL_FUNCTION_PARAMETERS, int operation)
 */
 
        /* Build buffer for isc_service_attach() */
-       snprintf(buf, sizeof(buf), "%c%c%c%d%s%c%d%s", isc_spb_version, isc_spb_current_version, isc_spb_user_name, 
+       snprintf(spb_buffer, sizeof(spb_buffer), "%c%c%c%d%s%c%d%s", isc_spb_version, isc_spb_current_version, isc_spb_user_name, 
                                                strlen(dba_user_name), dba_user_name, isc_spb_password, strlen(dba_password), dba_password);
-       spb_length = strlen(buf);
+       spb_length = strlen(spb_buffer);
 
        /* Attach to the Service Manager */
        snprintf(service_name, sizeof(service_name), "%s:service_mgr", ib_server);