[asterisk-commits] trunk r10895 - /trunk/funcs/func_odbc.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Feb 23 12:26:23 MST 2006


Author: tilghman
Date: Thu Feb 23 13:26:22 2006
New Revision: 10895

URL: http://svn.digium.com/view/asterisk?rev=10895&view=rev
Log:
Some sick individuals use SQL queries longer than 512 bytes in the dialplan.  ;-)

Modified:
    trunk/funcs/func_odbc.c

Modified: trunk/funcs/func_odbc.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_odbc.c?rev=10895&r1=10894&r2=10895&view=diff
==============================================================================
--- trunk/funcs/func_odbc.c (original)
+++ trunk/funcs/func_odbc.c Thu Feb 23 13:26:22 2006
@@ -51,8 +51,8 @@
 struct acf_odbc_query {
 	char name[30];
 	char dsn[30];
-	char sql_read[512];
-	char sql_write[512];
+	char sql_read[2048];
+	char sql_write[2048];
 	struct ast_custom_function *acf;
 	unsigned int deleteme:1;
 	struct acf_odbc_query *next;
@@ -79,7 +79,7 @@
 {
 	odbc_obj *obj;
 	struct acf_odbc_query *query;
-	char *t, *arg, buf[512]="", varname[15];
+	char *t, *arg, buf[2048]="", varname[15];
 	int res, argcount=0, valcount=0, i, retry=0;
 	struct ast_channel *ast;
 	SQLHSTMT stmt;
@@ -237,7 +237,7 @@
 {
 	odbc_obj *obj;
 	struct acf_odbc_query *query;
-	char *arg, sql[512] = "", varname[15];
+	char *arg, sql[2048] = "", varname[15];
 	int count=0, res, x;
 	SQLHSTMT stmt;
 	SQLSMALLINT colcount=0;



More information about the asterisk-commits mailing list