summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Strahl <c.a.strahl@gmail.com>2017-10-15 22:01:41 +0200
committerAlexis Ballier <aballier@gentoo.org>2017-10-17 07:47:06 +0200
commitbde1d2d0a2289811e5b499fc279925cb47480ef9 (patch)
tree6aa6f9be6e5699805d66082a0bb14796d76cfc7e /app-accessibility/speech-tools/files/speech-tools-2.1-gcc7.patch
parentdev-ruby/bundler: add 1.15.4, bug 628776 (diff)
downloadgentoo-bde1d2d0a2289811e5b499fc279925cb47480ef9.tar.gz
gentoo-bde1d2d0a2289811e5b499fc279925cb47480ef9.tar.bz2
gentoo-bde1d2d0a2289811e5b499fc279925cb47480ef9.zip
app-accessibility/speech-tools-2.1-r4: fix gcc-7 build, #634224
Diffstat (limited to 'app-accessibility/speech-tools/files/speech-tools-2.1-gcc7.patch')
-rw-r--r--app-accessibility/speech-tools/files/speech-tools-2.1-gcc7.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/app-accessibility/speech-tools/files/speech-tools-2.1-gcc7.patch b/app-accessibility/speech-tools/files/speech-tools-2.1-gcc7.patch
new file mode 100644
index 000000000000..9e1067fa1dc1
--- /dev/null
+++ b/app-accessibility/speech-tools/files/speech-tools-2.1-gcc7.patch
@@ -0,0 +1,20 @@
+--- a/siod/siod.cc
++++ b/siod/siod.cc
+@@ -459,7 +459,7 @@ char **siod_variable_generator(char *text,int length)
+ matches = walloc(char *,siod_llength(lmatches)+1);
+ for (l=lmatches,i=0; l; l=cdr(l),i++)
+ matches[i] = wstrdup(PNAME(car(l)));
+- matches[i] = '\0';
++ *matches[i] = '\0';
+
+ return matches;
+ }
+@@ -498,7 +498,7 @@ char **siod_command_generator (char *text,int length)
+ matches = walloc(char *,siod_llength(lmatches)+1);
+ for (l=lmatches,i=0; l; l=cdr(l),i++)
+ matches[i] = wstrdup(PNAME(car(l)));
+- matches[i] = '\0';
++ *matches[i] = '\0';
+
+ return matches;
+ }