mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 18:26:39 +02:00
46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
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
|
|
|