File: 005_format-security.patch

package info (click to toggle)
unace 1.2b-19
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 416 kB
  • sloc: ansic: 1,762; sh: 113; makefile: 44
file content (30 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (5)
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
Description: Fix format-security build failures.
Author: Guillem Jover <guillem@hadrons.org>
Origin: vendor
Forwarded: no


---
 unace.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/unace.c
+++ b/unace.c
@@ -265,7 +265,7 @@ INT  open_archive(INT print_err)
       printf("Authenticity Verification:");   // print the AV
       sprintf(av_str, "\ncreated on %d.%d.%d by ",
               ts_day(adat.time_cr), ts_month(adat.time_cr), ts_year(adat.time_cr));
-      printf(av_str);
+      printf("%s", av_str);
       copylen = mhead.AV_SIZE;
       if (copylen > 79)
         copylen = 79;
@@ -566,7 +566,7 @@ int main(INT argc, CHAR * argv[])
    INT show_help,
        arg_cnt = 1;
 
-   printf(version);
+   printf("%s", version);
    show_help=0;
 
    if (argc < 3 || strlen(argv[1]) > 1 || argv[argc-1][0] == '-')