summarylogtreecommitdiffstats
path: root/lsynth-3.1.1.patch
diff options
context:
space:
mode:
authorgargan2019-11-16 02:29:14 -0500
committergargan2019-11-16 02:29:14 -0500
commit939ea9d62a34eb20dbcc4b9ede37c8488ce15eea (patch)
treea68aeea2ba6b984f8e0a9c841a2053e7fbb746c9 /lsynth-3.1.1.patch
parent992a25d687324de556be617bb21e7a825b6ade60 (diff)
downloadaur-lsynth.tar.gz
Fixed code issue with fullpath to executable. Moved changes to patch file.
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");