aboutsummaryrefslogtreecommitdiffstats
path: root/community/unarj/format.patch
blob: 2c4c0ab7df529bcb8ef2b5c757f216904386447e (plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
diff --git a/unarj.c b/unarj.c
index 02b1a63..85e7b05 100644
--- a/unarj.c
+++ b/unarj.c
@@ -696,7 +696,7 @@ check_flags()
     }
     if ((arj_flags & GARBLE_FLAG) != 0)
     {
-        printf(M_ENCRYPT);
+        printf("%s", M_ENCRYPT);
         printf(M_SKIPPED, filename);
         skip();
         return -1;
@@ -777,7 +777,7 @@ extract()
     }
     printf(M_EXTRACT, name);
     if (host_os != OS && file_type == BINARY_TYPE)
-        printf(M_DIFFHOST);
+        printf("%s", M_DIFFHOST);
     printf("  ");
 
     crc = CRC_MASK;
@@ -793,10 +793,10 @@ extract()
     set_ftime_mode(name, time_stamp, file_mode, (uint) host_os);
 
     if ((crc ^ CRC_MASK) == file_crc)
-        printf(M_CRCOK);
+        printf("%s", M_CRCOK);
     else
     {
-        printf(M_CRCERROR);
+        printf("%s", M_CRCERROR);
         error_count++;
     }
     return 1;
@@ -822,10 +822,10 @@ test()
         decode_f();
 
     if ((crc ^ CRC_MASK) == file_crc)
-        printf(M_CRCOK);
+        printf("%s", M_CRCOK);
     else
     {
-        printf(M_CRCERROR);
+        printf("%s", M_CRCERROR);
         error_count++;
     }
     return 1;
@@ -972,7 +972,7 @@ help()
     int i;
 
     for (i = 0; M_USAGE[i] != NULL; i++)
-        printf(M_USAGE[i]);
+        printf("%s", M_USAGE[i]);
 }
 
 int
@@ -987,7 +987,7 @@ char *argv[];
     argc = ccommand(&argv);
 #endif
 
-    printf(M_VERSION);
+    printf("%s", M_VERSION);
 
     if (argc == 1)
     {