public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-libs/libgii/files/, media-libs/libgii/
@ 2024-11-13 18:50 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2024-11-13 18:50 UTC (permalink / raw
  To: gentoo-commits

commit:     1ab4d708b1eb7e7aec65b1e6a2146ae0590bd895
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 13 18:49:11 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 13 18:49:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ab4d708

media-libs/libgii: fix -Wformat-security

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/libgii-1.0.2-Wformat-security.patch      | 28 ++++++++++++++++++++++
 ...bgii-1.0.2-r3.ebuild => libgii-1.0.2-r4.ebuild} | 10 +++++---
 2 files changed, 35 insertions(+), 3 deletions(-)

diff --git a/media-libs/libgii/files/libgii-1.0.2-Wformat-security.patch b/media-libs/libgii/files/libgii-1.0.2-Wformat-security.patch
new file mode 100644
index 000000000000..5fab014afb06
--- /dev/null
+++ b/media-libs/libgii/files/libgii-1.0.2-Wformat-security.patch
@@ -0,0 +1,28 @@
+--- a/input/linux_mouse/input.c
++++ b/input/linux_mouse/input.c
+@@ -251,7 +251,7 @@ static int do_mouse_open(gii_input *inp, char *filename,
+ 				"        device may not work as expected\n");
+ #endif /* HAVE_TIOCMSET */
+ 		}
+-		if (dowarn) fprintf(stderr, serialfailstr);
++		if (dowarn) fprintf(stderr, "%s", serialfailstr);
+ 	}
+ 
+ 	return 0;
+--- a/input/lk201/input.c
++++ b/input/lk201/input.c
+@@ -256,12 +256,12 @@ do_lk201_open(gii_input *inp, const char *filename)
+ 		}
+ 		else 
+ 		{
+-			fprintf(stderr, tcsetattrfailstr);
++			fprintf(stderr, "%s", tcsetattrfailstr);
+ 		}
+ 	} 
+ 	else 
+ 	{
+-		fprintf(stderr, tcgetattrfailstr);
++		fprintf(stderr, "%s", tcgetattrfailstr);
+ 	}
+ 	
+ 	/* dump and characters currently in the buffer */

diff --git a/media-libs/libgii/libgii-1.0.2-r3.ebuild b/media-libs/libgii/libgii-1.0.2-r4.ebuild
similarity index 88%
rename from media-libs/libgii/libgii-1.0.2-r3.ebuild
rename to media-libs/libgii/libgii-1.0.2-r4.ebuild
index c73877f9edd8..6fbfcdcd2e1a 100644
--- a/media-libs/libgii/libgii-1.0.2-r3.ebuild
+++ b/media-libs/libgii/libgii-1.0.2-r4.ebuild
@@ -18,14 +18,18 @@ RDEPEND="
 	X? (
 		>=x11-libs/libX11-1.6.2
 		>=x11-libs/libXxf86dga-1.1.4
-	)"
-DEPEND="${RDEPEND}
-	kernel_linux? ( >=sys-kernel/linux-headers-2.6.11 )"
+	)
+"
+DEPEND="
+	${RDEPEND}
+	kernel_linux? ( >=sys-kernel/linux-headers-2.6.11 )
+"
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-0.9.0-linux26-headers.patch
 	"${FILESDIR}"/${P}-configure-cpuid-pic.patch
 	"${FILESDIR}"/${P}-libtool_1.5_compat.patch
+	"${FILESDIR}"/${P}-Wformat-security.patch
 )
 
 src_prepare() {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-13 18:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-13 18:50 [gentoo-commits] repo/gentoo:master commit in: media-libs/libgii/files/, media-libs/libgii/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox