]> granicus.if.org Git - neomutt/commitdiff
Fix mutt_display_char to map '\0' to itself regardless of
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 15 Sep 1998 13:59:59 +0000 (13:59 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 15 Sep 1998 13:59:59 +0000 (13:59 +0000)
the translation table we use.

charset.c

index 1b6379fcfdcfee3f4175a3a8fdc732a983b8378e..dd12df09a03f3754c929b04c5f1bee0c97a4f839 100644 (file)
--- a/charset.c
+++ b/charset.c
@@ -190,7 +190,7 @@ UNICODE_MAP *mutt_get_translation(const char *_from, const char *_to)
 
 int mutt_display_char(int ch, UNICODE_MAP *map)
 {
-  if (!map || (ch < 0) || (ch > 255))
+  if (!map || (ch <= 0) || (ch > 255))
     return ch;
 
   return (*map)[ch];