From af5e635e601dd7275244bdafaa8709945118ee44 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 6 Apr 2007 08:57:20 +0000 Subject: [PATCH] fix windows build git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4868 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 4ee0f69b43..49ef4ac3fc 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -1340,7 +1340,7 @@ static char *sofia_glue_execute_sql2str_odbc(sofia_profile_t *profile, switch_mu } SQLDescribeCol(stmt, 1, name, sizeof(name), &NameLength, &DataType, &ColumnSize, &DecimalDigits, &Nullable); - SQLGetData(stmt, 1, SQL_C_CHAR, (SQLCHAR *)resbuf, len, NULL); + SQLGetData(stmt, 1, SQL_C_CHAR, (SQLCHAR *)resbuf, (SQLINTEGER)len, NULL); SQLFreeHandle(SQL_HANDLE_STMT, stmt); ret = resbuf; }