summaryrefslogtreecommitdiff
path: root/ext/odbc/php_odbc.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-03-12 04:46:03 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-03-12 04:46:03 +0000
commit68e36864c9b2016e6353bdec053454059eac6f0e (patch)
tree927508647909df02acf7156ac3c090bfa0488a17 /ext/odbc/php_odbc.c
parentbf90cdeff94b70b99e043662533c30e6940a1576 (diff)
downloadphp-git-68e36864c9b2016e6353bdec053454059eac6f0e.tar.gz
Fixed spprintf() usage.
Fixed compiler warnings.
Diffstat (limited to 'ext/odbc/php_odbc.c')
-rw-r--r--ext/odbc/php_odbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index 8e78f914b9..0298ec8789 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -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