diff --git a/src/libutf8/200_decode.c b/src/libutf8/200_decode.c index f01b7e0..f1bc920 100644 --- a/src/libutf8/200_decode.c +++ b/src/libutf8/200_decode.c @@ -74,7 +74,7 @@ utf8_decode_char2(const char* src, size_t size, size_t* used) ret |= ch & 0x3F; } - if(ch < min) { + if(ret < min) { errno = EILSEQ; return 0; }