tminor modification - dmenu - Dmenu fork with xft fonts. (HTM) git clone git://r-36.net/dmenu (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 4e74263ba02edc7da07f23b2737a1e471375a6e8 (DIR) parent bab59a980716e5f210f27e92b11a53517412bc5f (HTM) Author: a@null <unknown> Date: Tue, 9 Dec 2008 21:55:47 +0000 minor modification Diffstat: dmenu.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- (DIR) diff --git a/dmenu.c b/dmenu.c t@@ -396,10 +396,7 @@ kpress(XKeyEvent * e) { default: if(num && !iscntrl((int) buf[0])) { buf[num] = 0; - if(len > 0) - strncat(text, buf, sizeof text); - else - strncpy(text, buf, sizeof text); + strncpy(text + len, buf, sizeof text - len); match(text); } break;