summarylogtreecommitdiffstats
path: root/h4h5tools-format-security-fix.patch
blob: 632a54e9da5e80df5a3db32191a8cdd2ae754356 (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
From 42386fc3b0a4ef66baeeaba9e028e6d757a1548f Mon Sep 17 00:00:00 2001
From: Angel de Vicente <angel.de.vicente@iac.es>
Date: Sat, 9 Oct 2021 00:56:40 +0100
Subject: [PATCH] fixed compiling error

---
 utils/h5toh4/h5toh4.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/utils/h5toh4/h5toh4.c b/utils/h5toh4/h5toh4.c
index edb5300..dbc0fcf 100644
--- a/utils/h5toh4/h5toh4.c
+++ b/utils/h5toh4/h5toh4.c
@@ -302,7 +302,7 @@ main(int argc, char *argv[])
   {
     (void) fprintf(stderr, err1, argc);
     PrintOptions_h5toh4();
-    (void) fprintf(stderr, err4);
+    (void) fprintf(stderr, "%s", err4);
     return EXIT_FAILURE;
   }
 
@@ -317,7 +317,7 @@ main(int argc, char *argv[])
     if ((token = gtoken(argv[i])) == TOK_ERR)
     {
       PrintOptions_h5toh4();
-      (void) fprintf(stderr, err4);
+      (void) fprintf(stderr, "%s", err4);
       return EXIT_FAILURE;
     }
 
@@ -359,9 +359,9 @@ main(int argc, char *argv[])
 
       case TOK_ERR:   /* command syntax error */
       default:
-        (void) fprintf(stderr, err2);
+        (void) fprintf(stderr, "%s", err2);
         PrintOptions_h5toh4();
-        (void) fprintf(stderr, err4);
+        (void) fprintf(stderr, "%s", err4);
         return EXIT_FAILURE;
     }
   }
-- 
2.33.0