1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
From: Jari Aalto <jari.aalto@cante.net>
Subject: Fix missing format strings
--- a/zoo.c
+++ b/zoo.c
@@ -167,7 +167,7 @@
cmd == UPDATE || cmd == DELETE) && argc < 4) ||
((cmd == EXTRACT || cmd == TEST || cmd == LIST ||
cmd == PRINT || cmd == COMMENT) && argc < 3)) {
- fprintf (stderr, incorrect_args);
+ fprintf (stderr, "%s", incorrect_args);
goto show_usage;
}
} else {
@@ -191,7 +191,7 @@
)
)
) {
- fprintf (stderr, incorrect_args);
+ fprintf (stderr, "%s", incorrect_args);
goto show_usage;
}
}
@@ -282,25 +282,25 @@
/* brief usage list */
give_list:
- fprintf (stderr, usage); zooexit (1);
+ fprintf (stderr, "%s", usage); zooexit (1);
/* help screen */
bigusage:
printf ("Zoo archiver, %s\n", version);
printf("(C) Copyright 1991 Rahul Dhesi -- Noncommercial use permitted\n");
-printf (usage);
+printf ("%s", usage);
printf ("\nChoose a command from within {} and zero or more modifiers from within [].\n");
printf ("E.g.: `zoo a save /bin/*' will archive all files in /bin into save.zoo.\n");
printf ("(Please see the user manual for a complete description of commands.)\n");
-printf (nov_usage);
-printf (nov_cmds);
+printf ("%s", nov_usage);
+printf ("%s", nov_cmds);
printf ("\n");
wait_return(); /* print msg & wait for RETURN */
printf ("\n");
-printf (usage);
+printf ("%s", usage);
printf (" Commands in {} mean: |Modifiers in [] mean:\n");
|