Signed-off-by: Khem Raj <[email protected]> --- ...ror-format-security-errors-with-mvwp.patch | 31 +++++++++++++++++++ .../recipes-extended/tiptop/tiptop_2.3.1.bb | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-extended/tiptop/tiptop/0001-Fix-a-lot-of-Werror-format-security-errors-with-mvwp.patch
diff --git a/meta-oe/recipes-extended/tiptop/tiptop/0001-Fix-a-lot-of-Werror-format-security-errors-with-mvwp.patch b/meta-oe/recipes-extended/tiptop/tiptop/0001-Fix-a-lot-of-Werror-format-security-errors-with-mvwp.patch new file mode 100644 index 0000000000..6d5e293c7f --- /dev/null +++ b/meta-oe/recipes-extended/tiptop/tiptop/0001-Fix-a-lot-of-Werror-format-security-errors-with-mvwp.patch @@ -0,0 +1,31 @@ +From 42e99eb6c727df7c9d49586803a4bf9933a9796b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 30 Oct 2021 10:52:42 -0700 +Subject: [PATCH] Fix a lot of -Werror=format-security errors with mvwprintw + +In all these places a non-constant is used as a format string which +compiler complains about. Fix by using "%s" as format. + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + src/helpwin.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/helpwin.c b/src/helpwin.c +index 0d660f9..1623d9c 100644 +--- a/src/helpwin.c ++++ b/src/helpwin.c +@@ -61,7 +61,7 @@ void show_help_win(WINDOW* win, screen_t* screen) + wattroff(win, A_REVERSE); + + /* screen description */ +- mvwprintw(win, 2, 1, screen->desc); ++ mvwprintw(win, 2, 1, "%s", screen->desc); + + /* max size of column headers */ + for(i = 0; i < n; i++) { +-- +2.33.1 + diff --git a/meta-oe/recipes-extended/tiptop/tiptop_2.3.1.bb b/meta-oe/recipes-extended/tiptop/tiptop_2.3.1.bb index 31d0dae25c..8334bc47d8 100644 --- a/meta-oe/recipes-extended/tiptop/tiptop_2.3.1.bb +++ b/meta-oe/recipes-extended/tiptop/tiptop_2.3.1.bb @@ -8,8 +8,8 @@ SRC_URI = "http://tiptop.gforge.inria.fr/releases/${BP}.tar.gz \ file://0001-Fix-parallel-build-problems-by-Adrian-Bunk.patch \ file://0002-fix-reproducibility-of-build-process.patch \ file://0001-Fix-build-when-S-B.patch \ + file://0001-Fix-a-lot-of-Werror-format-security-errors-with-mvwp.patch \ " -SRC_URI[md5sum] = "46ca0fdf0236f02dd2b96d347626d2a2" SRC_URI[sha256sum] = "51c4449c95bba34f16b429729c2f58431490665d8093efaa8643b2e1d1084182" inherit autotools -- 2.33.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#93677): https://lists.openembedded.org/g/openembedded-devel/message/93677 Mute This Topic: https://lists.openembedded.org/mt/86704003/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
