summaryrefslogtreecommitdiff
path: root/ext/odbc/php_odbc.c
diff options
context:
space:
mode:
authorDan Kalowsky <kalowsky@php.net>2003-05-29 12:34:38 +0000
committerDan Kalowsky <kalowsky@php.net>2003-05-29 12:34:38 +0000
commit7de28bdc6a3b7cbcee3abda9d88b30006bbcc777 (patch)
tree88c0bcc8710dbf0a05643643e0ad2d6e899c4650 /ext/odbc/php_odbc.c
parentc5ec799b2dd039baa921f9c8e31133e0dcbb0641 (diff)
downloadphp-git-7de28bdc6a3b7cbcee3abda9d88b30006bbcc777.tar.gz
ODBC standards compliance is a good thing.
# Should be MFB'd, but my PHP5 is drastically different right now..
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 7431014fff..355216b00e 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -2113,7 +2113,7 @@ int odbc_sqlconnect(odbc_connection **conn, char *db, char *uid, char *pwd, int
* #ifdef HAVE_EMPRESS */
{
int direct = 0;
- char dsnbuf[300];
+ char dsnbuf[1024];
short dsnbuflen;
char *ldb = 0;
int ldb_len = 0;
@@ -2131,7 +2131,7 @@ int odbc_sqlconnect(odbc_connection **conn, char *db, char *uid, char *pwd, int
}
if (direct)
- rc = SQLDriverConnect((*conn)->hdbc, NULL, ldb, strlen(ldb), dsnbuf, 300,
+ rc = SQLDriverConnect((*conn)->hdbc, NULL, ldb, strlen(ldb), dsnbuf, sizeof(dsnbuf),
&dsnbuflen, SQL_DRIVER_NOPROMPT);
else
rc = SQLConnect((*conn)->hdbc, db, SQL_NTS, uid, SQL_NTS, pwd, SQL_NTS);