diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-01 00:27:27 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-01 00:27:27 +0000 |
commit | 76542d50f3cffb94fde4b22b293580846cff3e53 (patch) | |
tree | 022976c47d960774d750e7a042ff7726a57652a9 /pbx/ael/ael.flex | |
parent | f657c7d7599dfa7f146c3104b5355cacfe43717d (diff) |
always trim the trailing ';'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23806 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/ael/ael.flex')
-rw-r--r-- | pbx/ael/ael.flex | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pbx/ael/ael.flex b/pbx/ael/ael.flex index 9f5e2f67f..04da2b324 100644 --- a/pbx/ael/ael.flex +++ b/pbx/ael/ael.flex @@ -378,9 +378,7 @@ includes { STORE_POS; return KW_INCLUDES;} <semic>{NOSEMIC}; { STORE_LOC; yylval->str = strdup(yytext); - /* XXX maybe the truncation should be unconditional ? */ - if(yyleng > 1) - *(yylval->str+yyleng-1)=0; + yylval->str[yyleng-1] = '\0'; unput(';'); BEGIN(0); return word; |