]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Allow global variables after substitution to be as long as other variables.
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 22 Jan 2009 17:18:07 +0000 (17:18 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 22 Jan 2009 17:18:07 +0000 (17:18 +0000)
(closes issue #14263)
 Reported by: markd
 Patches:
       20090120__bug14263.diff.txt uploaded by Corydon76 (license 14)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@170158 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_config.c

index aa1d17d5c5cff79fe07fed91b11fd7457eef7e16..ad3c86abeff9494a5bf065c91bef582d2ff2eece 100644 (file)
@@ -2245,7 +2245,11 @@ static int pbx_load_config(const char *config_file)
        struct ast_config *cfg;
        char *end;
        char *label;
+#ifdef LOW_MEMORY
        char realvalue[256];
+#else
+       char realvalue[8192];
+#endif
        int lastpri = -2;
        struct ast_context *con;
        struct ast_variable *v;