From 49ff08b25143b9d752f56744f4043f3f71a28c4a Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 14 Jan 2005 04:13:45 +0000 Subject: [PATCH] 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 --- src/winio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.5