summaryrefslogtreecommitdiff
path: root/repo/zynaddsubfx/fix-bogus-strstr.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-10-28 03:30:59 +0100
committerdavidovski <david@davidovski.xyz>2022-10-28 03:30:59 +0100
commit9cc8533c28967439cf57e6d4d0cac95d53b5ac67 (patch)
treea875d35adb5e8101485733456071112256b44ff9 /repo/zynaddsubfx/fix-bogus-strstr.patch
parentf99268f797c120a24030a573ef22813cd018beb5 (diff)
added snes9x and torsocks
Diffstat (limited to 'repo/zynaddsubfx/fix-bogus-strstr.patch')
-rw-r--r--repo/zynaddsubfx/fix-bogus-strstr.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/repo/zynaddsubfx/fix-bogus-strstr.patch b/repo/zynaddsubfx/fix-bogus-strstr.patch
new file mode 100644
index 0000000..8588045
--- /dev/null
+++ b/repo/zynaddsubfx/fix-bogus-strstr.patch
@@ -0,0 +1,16 @@
+Source: @pullmoll
+Upstream: no
+Reason: This piece of code is ill-conceived and cannot work. Remove it.
+
+--- a/rtosc/src/dispatch.c 2019-03-10 17:16:45.000000000 +0100
++++ b/rtosc/src/dispatch.c 2020-03-29 09:02:42.916119722 +0200
+@@ -289,8 +289,7 @@
+ return false;
+ } else if(type == 4) {
+ //extract substring
+- const char *sub=NULL;
+- return strstr(a,sub);
++ return false;
+ } else if(type == RTOSC_MATCH_OPTIONS || type == 6) {
+ return false;
+ } else if(type == RTOSC_MATCH_ENUMERATED) {