1
0

minor modification

This commit is contained in:
a@null 2008-12-09 21:55:47 +00:00
parent 97fe63d8ed
commit 8033eaa3d0

View File

@ -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;