aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/ael/ael.flex
diff options
context:
space:
mode:
Diffstat (limited to 'pbx/ael/ael.flex')
-rw-r--r--pbx/ael/ael.flex4
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;