From: David Lawrence Ramsey Date: Fri, 14 Jan 2005 04:13:45 +0000 (+0000) Subject: add missing memory corruption fix to do_statusbar_output() X-Git-Tag: v1.3.6~144 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=49ff08b25143b9d752f56744f4043f3f71a28c4a;p=nano.git 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 --- diff --git a/src/winio.c b/src/winio.c index f5db4484..601d6d40 100644 --- a/src/winio.c +++ b/src/winio.c @@ -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);