pinosaur
/
dmenu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bab59a9
)
minor modification
author
a@null
<unknown>
Tue, 9 Dec 2008 21:55:47 +0000
(21:55 +0000)
committer
a@null
<unknown>
Tue, 9 Dec 2008 21:55:47 +0000
(21:55 +0000)
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index
c0addad
..
44b4254
100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-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;