]> granicus.if.org Git - neomutt/commitdiff
fix var type in text_enriched_handler()
authorRichard Russon <rich@flatcap.org>
Thu, 19 Sep 2019 22:56:36 +0000 (23:56 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 21 Sep 2019 17:09:40 +0000 (18:09 +0100)
The fgetwc() return value was being truncated into a wchar_t.
This meant the error condition couldn't be detected.

enriched.c

index c728075465e3fb3d39730bf3ad1f1c151c27b930..00d688b00979d3ba233dada0a79e8f352cd774e9 100644 (file)
@@ -472,7 +472,7 @@ int text_enriched_handler(struct Body *a, struct State *s)
 
   long bytes = a->length;
   struct EnrichedState stte = { 0 };
-  wchar_t wc = 0;
+  wint_t wc = 0;
   int tag_len = 0;
   wchar_t tag[1024 + 1];