diff options
Diffstat (limited to 'apps/app_festival.c')
-rw-r--r-- | apps/app_festival.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c index fe38bb6fe..d875b7acb 100644 --- a/apps/app_festival.c +++ b/apps/app_festival.c @@ -344,12 +344,12 @@ static int festival_exec(struct ast_channel *chan, const char *vdata) const char *endcmd = "\" 'file)(quit)\n"; strln = strlen(startcmd) + strlen(args.text) + strlen(endcmd) + 1; - newfestivalcommand = alloca(strln); + newfestivalcommand = ast_alloca(strln); snprintf(newfestivalcommand, strln, "%s%s%s", startcmd, args.text, endcmd); festivalcommand = newfestivalcommand; } else { /* This else parses the festivalcommand that we're sent from the config file for \n's, etc */ int x, j; - newfestivalcommand = alloca(strlen(festivalcommand) + strlen(args.text) + 1); + newfestivalcommand = ast_alloca(strlen(festivalcommand) + strlen(args.text) + 1); for (x = 0, j = 0; x < strlen(festivalcommand); x++) { if (festivalcommand[x] == '\\' && festivalcommand[x + 1] == 'n') { |