diff options
author | a@null <unknown> | 2008-12-09 21:55:47 +0000 |
---|---|---|
committer | a@null <unknown> | 2008-12-09 21:55:47 +0000 |
commit | 4e74263ba02edc7da07f23b2737a1e471375a6e8 (patch) | |
tree | db29579989519730d4c65f9a5b98d1ca5dad94b0 | |
parent | bab59a980716e5f210f27e92b11a53517412bc5f (diff) |
minor modification
-rw-r--r-- | dmenu.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -396,10 +396,7 @@ kpress(XKeyEvent * e) { | |||
396 | default: | 396 | default: |
397 | if(num && !iscntrl((int) buf[0])) { | 397 | if(num && !iscntrl((int) buf[0])) { |
398 | buf[num] = 0; | 398 | buf[num] = 0; |
399 | if(len > 0) | 399 | strncpy(text + len, buf, sizeof text - len); |
400 | strncat(text, buf, sizeof text); | ||
401 | else | ||
402 | strncpy(text, buf, sizeof text); | ||
403 | match(text); | 400 | match(text); |
404 | } | 401 | } |
405 | break; | 402 | break; |