mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
x11-wm/wmfs: Actually apply dropped patch instead
Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
This commit is contained in:
20
x11-wm/wmfs/files/wmfs-99999999-strncat.patch
Normal file
20
x11-wm/wmfs/files/wmfs-99999999-strncat.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
--- a/src/launcher.c
|
||||
+++ b/src/launcher.c
|
||||
@@ -366,7 +366,7 @@
|
||||
if(pos && (end = complete(&cache, tmpbuf)))
|
||||
{
|
||||
strncpy(buf, tmpbuf, sizeof(buf));
|
||||
- strncat(buf, end, sizeof(buf));
|
||||
+ strncat(buf, end, sizeof(buf) - 1);
|
||||
found = true;
|
||||
}
|
||||
|
||||
@@ -387,7 +387,7 @@
|
||||
|
||||
default:
|
||||
lastwastab = false;
|
||||
- strncat(buf, tmp, sizeof(tmp));
|
||||
+ strncat(buf, tmp, sizeof(buf) - 1);
|
||||
++pos;
|
||||
break;
|
||||
}
|
||||
@@ -30,6 +30,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-99999999-Debian.patch
|
||||
"${FILESDIR}"/${PN}-99999999-desktop.patch
|
||||
"${FILESDIR}"/${PN}-99999999-fno-common.patch
|
||||
"${FILESDIR}"/${PN}-99999999-strncat.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
|
||||
Reference in New Issue
Block a user