]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
build tweak
authorMichael Jerris <mike@jerris.com>
Sat, 24 May 2008 05:23:41 +0000 (05:23 +0000)
committerMichael Jerris <mike@jerris.com>
Sat, 24 May 2008 05:23:41 +0000 (05:23 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8582 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_odbc.c

index e2343d81394ffe60908c233adaaa039c03e93d6e..6474243ea2f8921b2c9fca737df8c234356aa741 100644 (file)
@@ -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)) {