From: Thomas Roessler Date: Tue, 15 Sep 1998 13:59:59 +0000 (+0000) Subject: Fix mutt_display_char to map '\0' to itself regardless of X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46ee503e7a7b0ca20bd5c923b9e433837e1af02d;p=neomutt Fix mutt_display_char to map '\0' to itself regardless of the translation table we use. --- diff --git a/charset.c b/charset.c index 1b6379fcf..dd12df09a 100644 --- 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];