summarylogtreecommitdiffstats
path: root/lsynth-3.1.1.patch
diff options
context:
space:
mode:
Diffstat (limited to 'lsynth-3.1.1.patch')
-rw-r--r--lsynth-3.1.1.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/lsynth-3.1.1.patch b/lsynth-3.1.1.patch
new file mode 100644
index 000000000000..1072216a2a83
--- /dev/null
+++ b/lsynth-3.1.1.patch
@@ -0,0 +1,20 @@
+39a40
+> #include <unistd.h>
+219c220,230
+< strcpy(filename,fullpath_progname);
+---
+> ssize_t len = readlink("/proc/self/exe", filename, sizeof(filename)-1);
+> if (len != 1)
+> {
+> filename[len] = '\0';
+> }
+> else
+> {
+> filename[0] = '\0';
+> }
+>
+> // strcpy(filename,fullpath_progname);
+230c241
+< strcat(filename,"lsynth.mpd");
+---
+> strcat(filename,"../share/lsynth/lsynth.mpd");