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:
Jeroen Roovers
2020-06-24 08:20:46 +02:00
parent 5e4f700b26
commit 4d2516ef56
2 changed files with 21 additions and 0 deletions

View 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;
}

View File

@@ -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() {