summarylogtreecommitdiffstats
path: root/freeswitch-arch.patch
blob: d839b9c1cd6cdbf97d813be4da867aabe1d7eb3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Thanks, mal! [https://aur.archlinux.org/account/mal]
diff -ura freeswitch-orig/src/switch_ivr_play_say.c freeswitch/src/switch_ivr_play_say.c
--- freeswitch-orig/src/switch_ivr_play_say.c	2017-06-16 02:59:16.014037406 -0400
+++ freeswitch/src/switch_ivr_play_say.c	2017-06-16 03:05:49.060484516 -0400
@@ -1665,7 +1665,7 @@
 				}
 			}
 
-			buflen = FILE_STARTSAMPLES * sizeof(*abuf) * fh->cur_channels ? fh->cur_channels : fh->channels;
+			buflen = FILE_STARTSAMPLES * sizeof(*abuf) * (fh->cur_channels ? fh->cur_channels : fh->channels);
 
 			if (buflen > write_frame.buflen) {
 				abuf = realloc(abuf, buflen);
diff -ura freeswitch-orig/libs/esl/fs_cli.c freeswitch/libs/esl/fs_cli.c
--- freeswitch-orig/libs/esl/fs_cli.c	2017-06-21 12:52:54.490320046 -0400
+++ freeswitch/libs/esl/fs_cli.c	2017-06-21 12:49:53.456699573 -0400
@@ -76,7 +76,7 @@
 static int warn_stop = 0;
 static int connected = 0;
 static int allow_ctl_c = 0;
-static char bare_prompt_str[512] = "";
+static char bare_prompt_str[514] = "";
 static int bare_prompt_str_len = 0;
 static char prompt_str[512] = "";
 static char prompt_color[12] = {ESL_SEQ_DEFAULT_COLOR};