blob: 78410a960f78d1eb9b07dc41df404f0f009209a8 (
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
|
From 79ab07db8d91b6c6e0c36358c8030893c28510ba Mon Sep 17 00:00:00 2001
From: Michael Orlitzky <michael@orlitzky.com>
Date: Tue, 2 Aug 2016 10:32:53 -0400
Subject: [PATCH 1/1] clit.c: fix -Wformat-security warnings.
Two uses of printf() in clit.c were triggering -Wformat-security
warnings due to a missing "%s" format string. This was causing
compilation to fail with -Werror=format-security, so they have
been fixed.
Gentoo-Bug: 521246
---
clit18/clit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/clit18/clit.c b/clit18/clit.c
index c13a75d..48b749f 100644
--- a/clit18/clit.c
+++ b/clit18/clit.c
@@ -125,9 +125,9 @@ int main(int argc, char ** argv)
dir_program[i+1] = '\0'; break;
}
}
- printf(sTitle);
+ printf("%s", sTitle);
if (argc < 3) {
- printf(sUsage);
+ printf("%s", sUsage);
return -1;
}
base = 1;
--
2.7.3
|