]> granicus.if.org Git - mutt/commitdiff
Don't accept '\0' as keyboard input.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 3 Jan 2001 11:11:40 +0000 (11:11 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 3 Jan 2001 11:11:40 +0000 (11:11 +0000)
enter.c

diff --git a/enter.c b/enter.c
index 8509faf8698785de7cb4f5ccc30f228eefdccb38..169e64d63932942dc86235f92071759b6d953eac 100644 (file)
--- a/enter.c
+++ b/enter.c
@@ -634,7 +634,7 @@ self_insert:
        rv = 0; 
        goto bye;
       }
-      else if ((ch < ' ' || IsWPrint (ch))) /* why? */
+      else if (ch && (ch < ' ' || IsWPrint (ch))) /* why? */
       {
        if (state->lastchar >= state->wbuflen)
        {