diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2017-03-23 13:59:37 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-24 23:43:32 +0000 |
commit | da1d23a6d06ba014cbbf4d4c165280c6fb7b15a9 (patch) | |
tree | 72c62059b9580fad800972afb9b82faeb274a5c4 /meta/recipes-devtools/expect | |
parent | fcbad38193cad3e4e8d55cb54aefeed5f1dbc478 (diff) | |
download | poky-da1d23a6d06ba014cbbf4d4c165280c6fb7b15a9.tar.gz |
expect: resolve string formatting issues
[YOCTO #9542]
(From OE-Core rev: b5fd2874cfe199703e7a5d12fa708e12ff0a2ad1)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/expect')
-rw-r--r-- | meta/recipes-devtools/expect/expect/0001-Resolve-string-formatting-issues.patch | 29 | ||||
-rw-r--r-- | meta/recipes-devtools/expect/expect_5.45.bb | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/expect/expect/0001-Resolve-string-formatting-issues.patch b/meta/recipes-devtools/expect/expect/0001-Resolve-string-formatting-issues.patch new file mode 100644 index 0000000000..af1d8c626c --- /dev/null +++ b/meta/recipes-devtools/expect/expect/0001-Resolve-string-formatting-issues.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 107cc370705d8520ba42f1416d89ed3544277c83 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Thu, 23 Mar 2017 13:44:41 +0200 | ||
4 | Subject: [PATCH] Resolve string formatting issues. | ||
5 | |||
6 | Upstream-Status: Inappropriate [upstream seems dead] | ||
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
8 | --- | ||
9 | exp_clib.c | 4 ++-- | ||
10 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
11 | |||
12 | diff --git a/exp_clib.c b/exp_clib.c | ||
13 | index 172c05e..809200e 100644 | ||
14 | --- a/exp_clib.c | ||
15 | +++ b/exp_clib.c | ||
16 | @@ -1476,8 +1476,8 @@ expDiagLogU(str) | ||
17 | char *str; | ||
18 | { | ||
19 | if (exp_is_debugging) { | ||
20 | - fprintf(stderr,str); | ||
21 | - if (exp_logfile) fprintf(exp_logfile,str); | ||
22 | + fprintf(stderr, "%s", str); | ||
23 | + if (exp_logfile) fprintf(exp_logfile, "%s", str); | ||
24 | } | ||
25 | } | ||
26 | |||
27 | -- | ||
28 | 2.11.0 | ||
29 | |||
diff --git a/meta/recipes-devtools/expect/expect_5.45.bb b/meta/recipes-devtools/expect/expect_5.45.bb index ab22a61394..630f2e4649 100644 --- a/meta/recipes-devtools/expect/expect_5.45.bb +++ b/meta/recipes-devtools/expect/expect_5.45.bb | |||
@@ -25,6 +25,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/expect/Expect/${PV}/${BPN}${PV}.tar.gz \ | |||
25 | file://0002-tcl.m4.patch \ | 25 | file://0002-tcl.m4.patch \ |
26 | file://01-example-shebang.patch \ | 26 | file://01-example-shebang.patch \ |
27 | file://0001-expect-install-scripts-without-using-the-fixline1-tc.patch \ | 27 | file://0001-expect-install-scripts-without-using-the-fixline1-tc.patch \ |
28 | file://0001-Resolve-string-formatting-issues.patch \ | ||
28 | " | 29 | " |
29 | SRC_URI[md5sum] = "44e1a4f4c877e9ddc5a542dfa7ecc92b" | 30 | SRC_URI[md5sum] = "44e1a4f4c877e9ddc5a542dfa7ecc92b" |
30 | SRC_URI[sha256sum] = "b28dca90428a3b30e650525cdc16255d76bb6ccd65d448be53e620d95d5cc040" | 31 | SRC_URI[sha256sum] = "b28dca90428a3b30e650525cdc16255d76bb6ccd65d448be53e620d95d5cc040" |