1
Index: speech-dispatcher/src/modules/module_utils.c
2
===================================================================
3
--- speech-dispatcher.orig/src/modules/module_utils.c 2013-08-28 05:06:19.131107575 +1000
4
+++ speech-dispatcher/src/modules/module_utils.c 2013-08-28 05:06:19.127107575 +1000
7
pthread_mutex_lock(&module_stdout_mutex);
8
DBG("Printing reply: %s", text);
9
- fprintf(stdout, text);
10
+ fprintf(stdout, "%s", text);
13
pthread_mutex_unlock(&module_stdout_mutex);
14
Index: speech-dispatcher/src/modules/festival_client.c
15
===================================================================
16
--- speech-dispatcher.orig/src/modules/festival_client.c 2013-08-28 05:07:37.975109594 +1000
17
+++ speech-dispatcher/src/modules/festival_client.c 2013-08-28 05:15:00.951120936 +1000
19
fd = fdopen(dup(info->server_fd),"wb"); \
21
str = g_strdup_printf(format"\n"); \
23
+ fprintf(fd, "%s", str); \
24
DBG("-> Festival: |%s|", str); \
28
fd = fdopen(dup(info->server_fd),"wb"); \
30
str = g_strdup_printf(format"\n", args); \
32
+ fprintf(fd, "%s", str); \
33
DBG("-> Festival: |%s|", str); \
37
str = g_strdup_printf("(%s \"", command);
39
str = g_strdup_printf("(%s '", command);
41
+ fprintf(fd, "%s", str);
42
/* Copy text over to server, escaping any quotes */
43
for (p=text; p && (*p != '\0'); p++)