diff -u -r nano-24/cut.c nano-25/cut.c --- nano-24/cut.c Mon Jul 15 06:07:27 2002 +++ nano-25/cut.c Mon Jul 15 06:08:17 2002 @@ -125,7 +125,7 @@ top->data = (char *)nrealloc(top->data, sizeof(char) * newsize); } else { - totsize -= bot_x; + totsize -= bot_x + 1; /* Here, the remainder line might get longer, so we realloc * it first. */ @@ -149,7 +149,7 @@ if (!destructive) tmp = copy_node(tmp); else - totsize -= strlen(tmp->data); + totsize -= strlen(tmp->data) + 1; add_to_cutbuffer(tmp); tmp = next; }