diff --git a/src/nano.c b/src/nano.c index 021d3097..9a7c35ea 100644 --- a/src/nano.c +++ b/src/nano.c @@ -3643,7 +3643,7 @@ void do_output(int *kbinput, size_t kbinput_len) /* More dangerousness fun =) */ current->data = charealloc(current->data, - current_len + key_len + 1); + current_len + key_len + 2); assert(current_x <= current_len);