commit 4e0b1ae33240cba05aa706ab4ea3d5a3de6fe514
parent c4daf5d49e5079a7f85265529a0d9b5ebebef729
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Tue, 22 Mar 2005 03:58:51 +0000
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
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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