aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/ael/ael_lex.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-27 22:28:46 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-27 22:28:46 +0000
commita6d5aa22b9633ec86933ff844bfbf86c5a6b9dd5 (patch)
treecc738f899bd37d3d4bf83436b87030f4ea37002c /pbx/ael/ael_lex.c
parentbec31308c06801ff6170b9bdbed27cb7c3dcfb9c (diff)
ast_copy_string is not available when LOW_MEMORY is used and things are being built in the utils directory, so we need to resort to the old method of strncpy. (issue #8579 reported by mottano)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49009 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/ael/ael_lex.c')
-rw-r--r--pbx/ael/ael_lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/ael/ael_lex.c b/pbx/ael/ael_lex.c
index e416f6afb..7468a46bb 100644
--- a/pbx/ael/ael_lex.c
+++ b/pbx/ael/ael_lex.c
@@ -1689,7 +1689,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));