all repos — dmenu @ ec64f273fb7660d3746eb765dc02e40726a54294

my build of dmenu

applied Alex Sedov's Tab buffer termination patch, thanks
Anselm R Garbe anselm@garbe.us
Wed, 17 Apr 2013 20:59:12 +0200
commit

ec64f273fb7660d3746eb765dc02e40726a54294

parent

0d12a47415edba5db73f56dba76f123394581387

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M dmenu.cdmenu.c

@@ -392,7 +392,8 @@ break;

case XK_Tab: if(!sel) return; - strncpy(text, sel->text, sizeof text); + strncpy(text, sel->text, sizeof text - 1); + text[sizeof text - 1] = '\0'; cursor = strlen(text); match(); break;