diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-06-10 04:41:34 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-06-10 04:41:34 +0000 |
commit | 171992e5052534b06c5d5cebcb5a14aff58b3809 (patch) | |
tree | 609b300e334134497bbad46b61babdf30ef121da /pbx/ael/ael.flex | |
parent | 89672b86d07d3c10e56161b538bb674a854e8fb2 (diff) |
don't use ast_copy_string when building for an external tool
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/ael/ael.flex')
-rw-r--r-- | pbx/ael/ael.flex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pbx/ael/ael.flex b/pbx/ael/ael.flex index 4bac6f0a8..e66ce1287 100644 --- a/pbx/ael/ael.flex +++ b/pbx/ael/ael.flex @@ -404,7 +404,11 @@ 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 + strncpy(fnamebuf, p1 + 1, sizeof(fnamebuf) - 1); +#else ast_copy_string(fnamebuf, p1 + 1, sizeof(fnamebuf)); +#endif in1 = fopen( fnamebuf, "r" ); if ( ! in1 ) { ast_log(LOG_ERROR,"File=%s, line=%d, column=%d: Couldn't find the include file: %s; ignoring the Include directive!\n", my_file, my_lineno, my_col, fnamebuf); |