aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-02 22:30:53 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-02 22:30:53 +0000
commit77effcddb38603de337cfc16b08033e668bcce42 (patch)
treef497a3d8a131c4d7247ca25f364a68e36f3fa8ed /pbx
parentec2a75d21d0e3122f95cbd847f607f565ddda9fc (diff)
This is a slight modification to Josh's edits for #8579; both files edited were the produced by flex; so the source files need to be changed instead, and the generated files regenerated.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49237 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/ael/ael.flex2
-rw-r--r--pbx/ael/ael_lex.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/pbx/ael/ael.flex b/pbx/ael/ael.flex
index 1c4722e9b..41f24601c 100644
--- a/pbx/ael/ael.flex
+++ b/pbx/ael/ael.flex
@@ -411,7 +411,7 @@ includes { STORE_POS; return KW_INCLUDES;}
if (*(p1+1) != '/')
snprintf(fnamebuf, sizeof(fnamebuf), "%s/%s", ast_config_AST_CONFIG_DIR, p1 + 1);
else
-#ifdef STANDALONE
+#if defined(STANDALONE) || defined(LOW_MEMORY)
strncpy(fnamebuf, p1 + 1, sizeof(fnamebuf) - 1);
#else
ast_copy_string(fnamebuf, p1 + 1, sizeof(fnamebuf));
diff --git a/pbx/ael/ael_lex.c b/pbx/ael/ael_lex.c
index 359db7133..32296d41d 100644
--- a/pbx/ael/ael_lex.c
+++ b/pbx/ael/ael_lex.c
@@ -1683,7 +1683,7 @@ YY_RULE_SETUP
if (*(p1+1) != '/')
snprintf(fnamebuf, sizeof(fnamebuf), "%s/%s", ast_config_AST_CONFIG_DIR, p1 + 1);
else
-#ifdef STANDALONE
+#if defined(STANDALONE) || defined(LOW_MEMORY)
strncpy(fnamebuf, p1 + 1, sizeof(fnamebuf) - 1);
#else
ast_copy_string(fnamebuf, p1 + 1, sizeof(fnamebuf));