aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/edbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edbox.c b/src/edbox.c
index dc1a8e2..9c042e7 100644
--- a/src/edbox.c
+++ b/src/edbox.c
@@ -28,7 +28,7 @@ static void show_cursor(void) {
}
void edbox_clear(void) {
- memset(edit_box, 0, EDBOX_SIZE);
+ memset(edit_box, 0, EDBOX_SIZE + 1);
edbox_pos = edbox_len = 0;
show_cursor(); // not needed? seems it is..
}