[Asterisk-cvs] asterisk/apps app_festival.c,1.14,1.15

malcolmd at lists.digium.com malcolmd at lists.digium.com
Wed Mar 24 17:53:56 CST 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv19684/apps

Modified Files:
	app_festival.c 
Log Message:
Bug # 1287: Festival cache string bug fixed


Index: app_festival.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_festival.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- app_festival.c	15 Mar 2004 16:51:58 -0000	1.14
+++ app_festival.c	24 Mar 2004 22:50:43 -0000	1.15
@@ -376,7 +376,8 @@
     			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");




More information about the svn-commits mailing list