You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/hamlib/files/hamlib-3.3-format-security....

15 lines
738 B

# 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.