From: David Lawrence Ramsey Date: Tue, 22 Mar 2005 03:58:51 +0000 (+0000) Subject: add missing space in the help text, and fix an allocsize-related assert X-Git-Tag: v1.3.7~44 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4e0b1ae33240cba05aa706ab4ea3d5a3de6fe514;p=nano.git 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 --- 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