Commit b6fbdd00 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

tweak the charealloc() in do_output() to more closely match the old

charealloc() in do_char(), to avoid another memory corruption problem


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2229 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment