aboutsummaryrefslogtreecommitdiff
path: root/ui_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui_input.c')
-rw-r--r--ui_input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui_input.c b/ui_input.c
index 76c00c1..260e9ef 100644
--- a/ui_input.c
+++ b/ui_input.c
@@ -149,6 +149,7 @@ del_input(WINDOW *win, struct input *a)
if (a->input_len == 0) return (UICB_ERR_BUF);
memmove((a->input + a->input_pos - 1), (a->input + a->input_pos), a->input_max - a->input_pos);
--a->input_len;
+ *(a->input + a->input_len) = '\0';
if (a->input_pos-1 == a->input_len) {
--a->input_pos;
}