Commit 49ff08b2 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

add missing memory corruption fix to do_statusbar_output()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2258 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 116c828c
Showing with 2 additions and 1 deletion
+2 -1
......@@ -1941,7 +1941,8 @@ void do_statusbar_output(char *output, size_t output_len, bool
i += char_buf_len;
/* More dangerousness fun =) */
answer = charealloc(answer, statusbar_xend + char_buf_len + 1);
answer = charealloc(answer, statusbar_xend +
(char_buf_len * 2));
assert(statusbar_x <= statusbar_xend);
......
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