From: David Lawrence Ramsey Date: Tue, 1 Mar 2005 23:36:34 +0000 (+0000) Subject: formatting fix X-Git-Tag: v1.3.6~70 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e6bbee8fe41db801d1d66c3b5e4ed00f3fd7fa13;p=nano.git formatting fix git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2333 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/nano.c b/src/nano.c index 6f455296..52ba8a92 100644 --- a/src/nano.c +++ b/src/nano.c @@ -3096,7 +3096,8 @@ void do_justify(bool full_justify) size_t prev_line_len = strlen(current->prev->data); if (par_len > 1) { - current->prev->data = charealloc(current->prev->data, + current->prev->data = + charealloc(current->prev->data, prev_line_len + 2); current->prev->data[prev_line_len] = ' '; current->prev->data[prev_line_len + 1] = '\0';