From: Michael Jerris Date: Sat, 24 May 2008 05:23:41 +0000 (+0000) Subject: build tweak X-Git-Tag: v1.0.0~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1bf2c209941999b42181f6ad3fee112a7ba6bfd;p=thirdparty%2Ffreeswitch.git build tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8582 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_odbc.c b/src/switch_odbc.c index e2343d8139..6474243ea2 100644 --- a/src/switch_odbc.c +++ b/src/switch_odbc.c @@ -149,7 +149,7 @@ SWITCH_DECLARE(switch_odbc_status_t) switch_odbc_handle_connect(switch_odbc_hand } else { SQLCHAR outstr[1024] = {0}; SQLSMALLINT outstrlen = 0; - result = SQLDriverConnect(handle->con, NULL, (SQLCHAR *) handle->dsn, strlen(handle->dsn), outstr, sizeof(outstr), &outstrlen, SQL_DRIVER_NOPROMPT); + result = SQLDriverConnect(handle->con, NULL, (SQLCHAR *) handle->dsn, (SQLSMALLINT)strlen(handle->dsn), outstr, sizeof(outstr), &outstrlen, SQL_DRIVER_NOPROMPT); } if ((result != SQL_SUCCESS) && (result != SQL_SUCCESS_WITH_INFO)) {