summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-06-27 19:08:10 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-07-01 09:59:26 +0200
commit2bd65aacdfa2634f20dfbc7cacf6e418f8cc2ae7 (patch)
tree9c1b8800a54516067adbef87f0e43d105a883011 /meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch
parent9d7a49a58b7dd1004c6095a9bcff04d7e4e4b56f (diff)
downloadmeta-openembedded-2bd65aacdfa2634f20dfbc7cacf6e418f8cc2ae7.tar.gz
umip: Fix buid with hardening
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch')
-rw-r--r--meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch b/meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch
new file mode 100644
index 0000000000..8e5f4da362
--- /dev/null
+++ b/meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch
@@ -0,0 +1,26 @@
1From a0ad5128d14b022239445e251cf4a9826e86aa96 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 27 Jun 2017 07:48:31 -0700
4Subject: [PATCH] Add format string to fprintf() call
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 src/vt.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/src/vt.c b/src/vt.c
12index 795d393..a533d3d 100644
13--- a/src/vt.c
14+++ b/src/vt.c
15@@ -499,7 +499,7 @@ static int vt_cmd_dump_candidates(const struct vt_handle *vh,
16 }
17 llen += cmdlen;
18
19- ret = fprintf(vh->vh_stream, e->cmd);
20+ ret = fprintf(vh->vh_stream, "%s", e->cmd);
21 if (ret < 0)
22 return ret;
23
24--
252.13.2
26