diff options
author | Malcolm Davenport <malcolmd@digium.com> | 2004-03-24 22:50:43 +0000 |
---|---|---|
committer | Malcolm Davenport <malcolmd@digium.com> | 2004-03-24 22:50:43 +0000 |
commit | 3ec7218ffb332cecc5bc062d7135822dca34a904 (patch) | |
tree | 25431ae1abc2f1c16598a11a434f7ecabc16c7cc /apps/app_festival.c | |
parent | 96c7fb890ee6d505a0de1d5f07af0d1bba7c4eee (diff) |
Bug # 1287: Festival cache string bug fixed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_festival.c')
-rwxr-xr-x | apps/app_festival.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c index 0e016e3d1..337de43b6 100755 --- a/apps/app_festival.c +++ b/apps/app_festival.c @@ -376,7 +376,8 @@ static int festival_exec(struct ast_channel *chan, void *vdata) if (strlen((char *)data)==strln) { ast_log(LOG_DEBUG,"Size OK\n"); read(fdesc,&bigstring,strln); - if (strcmp(bigstring,data)==0) { + bigstring[strln] = 0; + if (strcmp(bigstring,data)==0) { readcache=1; } else { ast_log(LOG_WARNING,"Strings do not match\n"); |