]> git.wh0rd.org Git - nano.git/commitdiff
Off by one error fix (Rocco Corsi)
authorChris Allegretta <chrisa@asty.org>
Fri, 25 Aug 2000 01:44:12 +0000 (01:44 +0000)
committerChris Allegretta <chrisa@asty.org>
Fri, 25 Aug 2000 01:44:12 +0000 (01:44 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@187 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
winio.c

index 4ad19a76c49da8e955a61016fbc3ba21dc641dac..3f19dded851e60c3fa4addf945f3cc307a4a5679 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,8 @@ CVS Code
   edit_refresh_clearok()
        - New function, does a total update for edit refresh, needed to fix
          lack of reversed text on searching with MARK_ISSET.
+  onekey()
+       - Off by one error fix (Rocco Corsi).
 - search.c:
   search_abort()
        - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
diff --git a/winio.c b/winio.c
index 1e4501131b8e1f75b0f67dc25c69ed5347fa8b28..746fe3a7c8a69f78e144ee67e1637185db775226 100644 (file)
--- a/winio.c
+++ b/winio.c
@@ -462,7 +462,7 @@ void onekey(char *keystroke, char *desc)
 {
     char description[80];
 
-    snprintf(description, 12, " %-11s", desc);
+    snprintf(description, 13, " %-11s", desc);
     wattron(bottomwin, A_REVERSE);
     waddstr(bottomwin, keystroke);
     wattroff(bottomwin, A_REVERSE);