summarylogtreecommitdiffstats
path: root/lsynth-3.1.1.patch
blob: 1072216a2a83f301133accbb2b4d9342ceb48457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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");