From b5d879c5f36221eda5fcf29cb297fda246fcf8ab Mon Sep 17 00:00:00 2001 From: HummyPkg Date: Fri, 10 Mar 2017 09:08:37 +0000 Subject: [PATCH] Only check for UTF8 sequence if no changes have been made --- xconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xconv.c b/xconv.c index 12f137a..34b828d 100644 --- a/xconv.c +++ b/xconv.c @@ -78,7 +78,7 @@ xconv(char *src, char *dst, size_t dstlen) continue; } - if (is_utf_sequence(s)) + if (!changed && is_utf_sequence(s)) return 0; changed = 1;