[Freeswitch-svn] [commit] r8582 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Sat May 24 01:23:41 EDT 2008


Author: mikej
Date: Sat May 24 01:23:41 2008
New Revision: 8582

Modified:
   freeswitch/trunk/src/switch_odbc.c

Log:
build tweak

Modified: freeswitch/trunk/src/switch_odbc.c
==============================================================================
--- freeswitch/trunk/src/switch_odbc.c	(original)
+++ freeswitch/trunk/src/switch_odbc.c	Sat May 24 01:23:41 2008
@@ -149,7 +149,7 @@
 	} 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)) {



More information about the Freeswitch-svn mailing list