applied Alex Sedov's Tab buffer termination patch, thanks
This commit is contained in:
parent
873fa55944
commit
5f0f8e4db7
|
@ -392,7 +392,8 @@ keypress(XKeyEvent *ev) {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user