*** funcs/func_odbc.c 2009-08-10 16:30:55.000000000 -0300 --- ../asterisk-1.6.1.12-new/funcs/func_odbc.c 2010-03-11 11:23:46.000000000 -0300 *************** *** 141,147 **** ); SQLHSTMT stmt = NULL; SQLLEN rows=0; ! struct ast_str *buf = ast_str_create(16); if (!buf) { return -1; --- 141,147 ---- ); SQLHSTMT stmt = NULL; SQLLEN rows=0; ! struct ast_str *buf = ast_str_create(4096); if (!buf) { return -1; *************** *** 260,266 **** struct odbc_obj *obj = NULL; struct acf_odbc_query *query; char varname[15], rowcount[12] = "-1"; ! struct ast_str *colnames = ast_str_thread_get(&colnames_buf, 16); int res, x, y, buflen = 0, escapecommas, rowlimit = 1, dsn, bogus_chan = 0; AST_DECLARE_APP_ARGS(args, AST_APP_ARG(field)[100]; --- 260,266 ---- struct odbc_obj *obj = NULL; struct acf_odbc_query *query; char varname[15], rowcount[12] = "-1"; ! struct ast_str *colnames = ast_str_thread_get(&colnames_buf, 4096); int res, x, y, buflen = 0, escapecommas, rowlimit = 1, dsn, bogus_chan = 0; AST_DECLARE_APP_ARGS(args, AST_APP_ARG(field)[100]; *************** *** 271,277 **** SQLSMALLINT collength; struct odbc_datastore *resultset = NULL; struct odbc_datastore_row *row = NULL; ! struct ast_str *sql = ast_str_create(16); if (!sql) { return -1; --- 271,277 ---- SQLSMALLINT collength; struct odbc_datastore *resultset = NULL; struct odbc_datastore_row *row = NULL; ! struct ast_str *sql = ast_str_create(4096); if (!sql) { return -1; *************** *** 394,400 **** buf[0] = '\0'; for (x = 0; x < colcount; x++) { int i; ! struct ast_str *coldata = ast_str_thread_get(&coldata_buf, 16); if (y == 0) { char colname[256]; --- 394,400 ---- buf[0] = '\0'; for (x = 0; x < colcount; x++) { int i; ! struct ast_str *coldata = ast_str_thread_get(&coldata_buf, 4096); if (y == 0) { char colname[256];