diff --git a/Fix-issues-with-Werror-format-security.patch b/Fix-issues-with-Werror-format-security.patch new file mode 100644 index 0000000000000000000000000000000000000000..920ba4a74f3047580acec99ce51f27e371ce50f5 --- /dev/null +++ b/Fix-issues-with-Werror-format-security.patch @@ -0,0 +1,26 @@ +From c84b26e5367ee6a0ab856c14bf1e18aa274926f9 Mon Sep 17 00:00:00 2001 +From: cherry530 <707078654@qq.com> +Date: Fri, 25 Aug 2023 17:33:50 +0800 +Subject: [PATCH] Fix issues with Werror format security + +Signed-off-by: cherry530 <707078654@qq.com> +--- + tools/wml/wmlouth.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/wml/wmlouth.c b/tools/wml/wmlouth.c +index ead4512..e92d181 100644 +--- a/tools/wml/wmlouth.c ++++ b/tools/wml/wmlouth.c +@@ -799,7 +799,7 @@ for ( ndx=0 ; ndxcnt ; ndx++ ) + } + if ( bitno != 8 ) + fprintf (outfil, "%s", maskbuf); +-fprintf (outfil, canned1a); ++fprintf (outfil, "%s", canned1a); + + /* + * close the output file +-- +2.27.0 + diff --git a/motif.spec b/motif.spec index b548ab0c5efddf6c0b4af83480e213dc58de5225..c39c31150dcf97ed9245b0ef749ff62e68dad281 100644 --- a/motif.spec +++ b/motif.spec @@ -1,6 +1,6 @@ Name: motif Version: 2.3.8 -Release: 4 +Release: 5 Summary: Run-time libraries and programs License: LGPLv2+ URL: https://motif.ics.com/ @@ -13,7 +13,9 @@ Requires: xorg-x11-xbitmaps, xorg-x11-xinit Requires: %{name}-help = %{version}-%{release} Provides: openmotif = %{version}-%{release} Conflicts: lesstif <= 0.92.32-6 -Patch0: 0001-fix-motif-no-autogen.patch + +Patch0: 0001-fix-motif-no-autogen.patch +Patch1: Fix-issues-with-Werror-format-security.patch %description This module is motif run-time environment, which includes the motif shared libraries. @@ -86,6 +88,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %{_mandir}/man*/* %changelog +* Fri Aug 25 2023 xu_ping <707078654@qq.com> - 2.3.8-5 +- Fix issues with Werror format security + * Wed Jun 28 2023 laokz - 2.3.8-4 - update config.guess and config.sub for riscv64