]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
a fix for bug 8251; the var_val needs to accept longer strings or mass confusion...
authorSteve Murphy <murf@digium.com>
Wed, 1 Nov 2006 19:52:43 +0000 (19:52 +0000)
committerSteve Murphy <murf@digium.com>
Wed, 1 Nov 2006 19:52:43 +0000 (19:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@46803 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_config_odbc.c

index e10f4ff7fa3d1ca219727cd8466f14718adb37e9..5a71ee561778979c650df738dc4105c0aced86c7 100644 (file)
@@ -423,7 +423,7 @@ static struct ast_config *config_odbc(const char *database, const char *table, c
        odbc_obj *obj;
        SQLINTEGER err=0, commented=0, cat_metric=0, var_metric=0, last_cat_metric=0;
        SQLBIGINT id;
-       char sql[255] = "", filename[128], category[128], var_name[128], var_val[512];
+       char sql[255] = "", filename[128], category[128], var_name[128], var_val[1024];
        SQLSMALLINT rowcount=0;
        SQLHSTMT stmt;
        char last[128] = "";