diff options
author | Sam James <sam@gentoo.org> | 2024-11-13 18:49:11 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-11-13 18:49:48 +0000 |
commit | 1ab4d708b1eb7e7aec65b1e6a2146ae0590bd895 (patch) | |
tree | 556a5ff0e97bdb344f60412a5748c31def32884e /media-libs | |
parent | net-proxy/dnsproxy: EAPI 8, eautoreconf for modern C issues (diff) | |
download | gentoo-1ab4d708b1eb7e7aec65b1e6a2146ae0590bd895.tar.gz gentoo-1ab4d708b1eb7e7aec65b1e6a2146ae0590bd895.tar.bz2 gentoo-1ab4d708b1eb7e7aec65b1e6a2146ae0590bd895.zip |
media-libs/libgii: fix -Wformat-security
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/libgii/files/libgii-1.0.2-Wformat-security.patch | 28 | ||||
-rw-r--r-- | media-libs/libgii/libgii-1.0.2-r4.ebuild (renamed from media-libs/libgii/libgii-1.0.2-r3.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 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() { |