summaryrefslogtreecommitdiff
path: root/media-libs/hamlib/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
commit623ee73d661e5ed8475cb264511f683407d87365 (patch)
tree993eb27c93ec7a2d2d19550300d888fc1fed9e69 /media-libs/hamlib/files
parentceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff)
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'media-libs/hamlib/files')
-rw-r--r--media-libs/hamlib/files/hamlib-3.3-format-security.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/media-libs/hamlib/files/hamlib-3.3-format-security.patch b/media-libs/hamlib/files/hamlib-3.3-format-security.patch
new file mode 100644
index 000000000000..bbf2de1d17d5
--- /dev/null
+++ b/media-libs/hamlib/files/hamlib-3.3-format-security.patch
@@ -0,0 +1,14 @@
+# Fixes build error with format-securety (bug #714682)
+diff --git a/tests/rotctl_parse.c b/tests/rotctl_parse.c
+index 44308cc..aab1300 100644
+--- a/tests/rotctl_parse.c
++++ b/tests/rotctl_parse.c
+@@ -1009,7 +1009,7 @@ int rotctl_parse(ROT *my_rot, FILE *fin, FILE *fout, char *argv[], int argc)
+ /* The starting position of the source string is the first
+ * character past the initial '\'.
+ */
+- snprintf(cmd_name, sizeof(cmd_name), parsed_input[0] + 1);
++ snprintf(cmd_name, sizeof(cmd_name), "%s", parsed_input[0] + 1);
+
+ /* Sanity check as valid multiple character commands consist of
+ * alpha-numeric characters and the underscore ('_') character.