diff --git a/src/nano.c b/src/nano.c index 66497c7b..cd7b8e96 100644 --- a/src/nano.c +++ b/src/nano.c @@ -221,8 +221,8 @@ partition *partition_filestruct(filestruct *top, size_t top_x, null_at(&bot->data, bot_x); /* Remove all text before top_x at the top of the partition. */ - charmove(top->data, top->data + top_x, strlen(top->data) - top_x + - 1); + charmove(top->data, top->data + top_x, strlen(top->data) - + top_x + 1); align(&top->data); /* Return the partition. */