From 4e0b1ae33240cba05aa706ab4ea3d5a3de6fe514 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Tue, 22 Mar 2005 03:58:51 +0000 Subject: [PATCH] add missing space in the help text, and fix an allocsize-related assert git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2417 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/nano.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nano.c b/src/nano.c index f610173d..7d611526 100644 --- a/src/nano.c +++ b/src/nano.c @@ -371,7 +371,7 @@ void help_init(void) "version, the current filename being edited, and whether " "or not the file has been modified. Next is the main editor " "window showing the file being edited. The status line is " - "the third line from the bottom and shows important messages. " + "the third line from the bottom and shows important messages. " "The bottom two lines show the most commonly used shortcuts " "in the editor.\n\n " "The notation for shortcuts is as follows: Control-key " @@ -537,7 +537,7 @@ void help_init(void) /* If all went well, we didn't overwrite the allocated space for * help_text. */ - assert(strlen(help_text) < allocsize); + assert(strlen(help_text) <= allocsize + 1); } #endif -- 2.39.5