From 05b4f87597db73b4ebb437c1cccf4a82352486b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 10 Jul 2019 21:21:46 +0300 Subject: [PATCH] Whoops --- ethermess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethermess.c b/ethermess.c index 52621b3..0602727 100644 --- a/ethermess.c +++ b/ethermess.c @@ -531,7 +531,7 @@ bool check_utf8(const unsigned char *data, size_t data_length, bool newline_allo } // Reject non-characters - if (codepoint & 0xffff == 0xfffe || codepoint & 0xffff == 0xffff) { + if ((codepoint & 0xffff) == 0xfffe || (codepoint & 0xffff) == 0xffff) { // Plane end non-characters return false; } else if (0xfdd0 <= codepoint && codepoint <= 0xfdef) {