aboutsummaryrefslogtreecommitdiff
path: root/audio/soundtracker/files
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-05-18 16:19:56 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2021-05-18 16:20:27 +0000
commita48484033b65420ef13e27a32cd3deab595d90f3 (patch)
treefe828d1832fcb4958c8a9e7d8237f62e336c842b /audio/soundtracker/files
parent84503ac0596158b75e2bb4eeca093399545e789c (diff)
downloadports-a48484033b65420ef13e27a32cd3deab595d90f3.tar.gz
ports-a48484033b65420ef13e27a32cd3deab595d90f3.zip
Diffstat (limited to 'audio/soundtracker/files')
-rw-r--r--audio/soundtracker/files/patch-app_audio-subs.c22
-rw-r--r--audio/soundtracker/files/patch-app_keys.c13
2 files changed, 35 insertions, 0 deletions
diff --git a/audio/soundtracker/files/patch-app_audio-subs.c b/audio/soundtracker/files/patch-app_audio-subs.c
new file mode 100644
index 000000000000..e124da926f6c
--- /dev/null
+++ b/audio/soundtracker/files/patch-app_audio-subs.c
@@ -0,0 +1,22 @@
+- bugfix, patch reported to the author via e-mail.
+
+--- app/audio-subs.c.orig 2021-05-18 15:20:58 UTC
++++ app/audio-subs.c
+@@ -138,7 +138,7 @@ union audio_backpipe_args {
+
+ struct _cmderrno {
+ audio_backpipe_id cmd;
+- gint errno;
++ gint errno_;
+ gint length;
+ gchar text[1];
+ } __attribute__((packed)) cmderrno;
+@@ -293,7 +293,7 @@ void audio_backpipe_write(audio_backpipe_id cmd, ...)
+ arg_size = l + sizeof(args->cmderrno);
+ args = arg_pointer = alloca(arg_size);
+ args->cmderrno.cmd = cmd;
+- args->cmderrno.errno = va_arg(arg_list, gint);
++ args->cmderrno.errno_ = va_arg(arg_list, gint);
+ args->cmderrno.length = l;
+ strncpy(args->cmderrno.text, line, l + 1);
+ break;
diff --git a/audio/soundtracker/files/patch-app_keys.c b/audio/soundtracker/files/patch-app_keys.c
new file mode 100644
index 000000000000..a62a00986f5b
--- /dev/null
+++ b/audio/soundtracker/files/patch-app_keys.c
@@ -0,0 +1,13 @@
+- bugfix, patch reported to the author via e-mail.
+
+--- app/keys.c.orig 2021-02-01 20:01:20 UTC
++++ app/keys.c
+@@ -893,7 +893,7 @@ keys_make_xkeys(void)
+ keyname[k++] = xkeymap[i].xname;
+ }
+
+- qsort(keyname, k, sizeof(char*), keys_qsort_compare_func);
++ qsort(keyname+1, k-1, sizeof(char*), keys_qsort_compare_func);
+
+ keyname[0] = NONE_TEXT;
+ }