diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-27 22:30:28 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-27 22:30:28 +0000 |
commit | 65d15d6d6237d022dc6951185051aca8fbfbaa3b (patch) | |
tree | d684263bb650b4ee9eb5cd2a6b6a8481f1a8edd0 /pbx | |
parent | 87686ce87549113edc29ea5f32d96b7a90be509d (diff) |
Merged revisions 49009 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49009 | file | 2006-12-27 17:28:46 -0500 (Wed, 27 Dec 2006) | 2 lines
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/trunk@49010 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r-- | pbx/ael/ael_lex.c | 2 |
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)); |