aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_festival.c
diff options
context:
space:
mode:
authormalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-24 22:50:43 +0000
committermalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-24 22:50:43 +0000
commit14986c0779ea2f8cf78ba3519f33044d4fed8650 (patch)
tree25431ae1abc2f1c16598a11a434f7ecabc16c7cc /apps/app_festival.c
parentb977319d614418f1124fc26a9289fbfb820508d8 (diff)
Bug # 1287: Festival cache string bug fixed
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2555 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_festival.c')
-rwxr-xr-xapps/app_festival.c3
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");