Package: unace / 1.2b-12

005_format-security.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
 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] == '-')