Fix issues with -Werror=format-security
Signed-off-by: cherry530 <707078654@qq.com> (cherry picked from commit 2415b5b15550ddec97f965fe22e3bd77323db3e1)
This commit is contained in:
parent
6745a42d20
commit
96cc253b0e
26
Fix-issues-with-Werror-format-security.patch
Normal file
26
Fix-issues-with-Werror-format-security.patch
Normal file
@ -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 ; ndx<wml_obj_arg_ptr->cnt ; ndx++ )
|
||||||
|
}
|
||||||
|
if ( bitno != 8 )
|
||||||
|
fprintf (outfil, "%s", maskbuf);
|
||||||
|
-fprintf (outfil, canned1a);
|
||||||
|
+fprintf (outfil, "%s", canned1a);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* close the output file
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: motif
|
Name: motif
|
||||||
Version: 2.3.8
|
Version: 2.3.8
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Run-time libraries and programs
|
Summary: Run-time libraries and programs
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://motif.ics.com/
|
URL: https://motif.ics.com/
|
||||||
@ -13,7 +13,9 @@ Requires: xorg-x11-xbitmaps, xorg-x11-xinit
|
|||||||
Requires: %{name}-help = %{version}-%{release}
|
Requires: %{name}-help = %{version}-%{release}
|
||||||
Provides: openmotif = %{version}-%{release}
|
Provides: openmotif = %{version}-%{release}
|
||||||
Conflicts: lesstif <= 0.92.32-6
|
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
|
%description
|
||||||
This module is motif run-time environment, which includes the motif shared libraries.
|
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*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%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 <zhangkai@iscas.ac.cn> - 2.3.8-4
|
* Wed Jun 28 2023 laokz <zhangkai@iscas.ac.cn> - 2.3.8-4
|
||||||
- update config.guess and config.sub for riscv64
|
- update config.guess and config.sub for riscv64
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user