summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/vlan/vlan-1.9/0001-Add-printf-format-and-silence-format-security-warnin.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-connectivity/vlan/vlan-1.9/0001-Add-printf-format-and-silence-format-security-warnin.patch')
-rw-r--r--meta-networking/recipes-connectivity/vlan/vlan-1.9/0001-Add-printf-format-and-silence-format-security-warnin.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/vlan/vlan-1.9/0001-Add-printf-format-and-silence-format-security-warnin.patch b/meta-networking/recipes-connectivity/vlan/vlan-1.9/0001-Add-printf-format-and-silence-format-security-warnin.patch
new file mode 100644
index 000000000..ebcfc7c2f
--- /dev/null
+++ b/meta-networking/recipes-connectivity/vlan/vlan-1.9/0001-Add-printf-format-and-silence-format-security-warnin.patch
@@ -0,0 +1,34 @@
1From 400b8f235377f677a7a760f1e3a1cd26d95140bc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 16 Jun 2017 22:58:18 -0700
4Subject: [PATCH] Add printf format and silence format-security warnings
5
6Fix
7
8vconfig.c:66:4: error: format not a string literal and no format arguments [-Werror=format-security]
9 fprintf(stdout,usage);
10 ^~~~~~~
11
12Upstream-Status: Pending
13
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 vconfig.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/vconfig.c b/vconfig.c
20index 5057cfd..83137ba 100644
21--- a/vconfig.c
22+++ b/vconfig.c
23@@ -63,7 +63,7 @@ static char* usage =
24 " is OFF.\n";
25
26 void show_usage() {
27- fprintf(stdout,usage);
28+ fprintf(stdout, "%s", usage);
29 }
30
31 int hex_to_bytes(char* bytes, int bytes_length, char* hex_str) {
32--
332.13.1
34