diff options
-rw-r--r-- | dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -519,7 +519,7 @@ insert: return; cursor = strnlen(sel->text, sizeof text - 1); memcpy(text, sel->text, cursor); - text[sizeof text - 1] = '\0'; + text[cursor] = '\0'; match(); break; } |