diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-10 04:41:34 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-10 04:41:34 +0000 |
commit | f352569f79781341732d31fbc8977d327ea09614 (patch) | |
tree | 609b300e334134497bbad46b61babdf30ef121da /pbx/ael/ael.flex | |
parent | c299dc314b006fa94bab6e1d2c45dbc805ec8e34 (diff) |
don't use ast_copy_string when building for an external tool
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33423 f38db490-d61c-443f-a65b-d21fe96a405b
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); |