]> granicus.if.org Git - php/commitdiff
Fixed spprintf() usage.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 12 Mar 2003 04:46:03 +0000 (04:46 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 12 Mar 2003 04:46:03 +0000 (04:46 +0000)
Fixed compiler warnings.

ext/odbc/php_odbc.c

index 8e78f914b9753b066ff1ae68d34063ade9b27c3c..0298ec8789dcce980385504bee1c7727a758e0f9 100644 (file)
@@ -2144,7 +2144,7 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
        pval **pv_db, **pv_uid, **pv_pwd, **pv_opt;
        odbc_connection *db_conn;
        char *hashed_details;
-       int hashed_len, len, cur_opt;
+       int hashed_len, cur_opt;
 
        /*  Now an optional 4th parameter specifying the cursor type
         *  defaulting to the cursors default
@@ -2190,7 +2190,7 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
                persistent = 0;
        }
 
-       hashed_len = spprintf(hashed_details, 0, "%s_%s_%s_%s_%d", ODBC_TYPE, db, uid, pwd, cur_opt);
+       hashed_len = spprintf(&hashed_details, 0, "%s_%s_%s_%s_%d", ODBC_TYPE, db, uid, pwd, cur_opt);
 
        /* FIXME the idea of checking to see if our connection is already persistent
                is good, but it adds a lot of overhead to non-persistent connections.  We