From c1bf2c209941999b42181f6ad3fee112a7ba6bfd Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sat, 24 May 2008 05:23:41 +0000 Subject: [PATCH] build tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8582 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_odbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {