From d729bc898c92d21f4c5c8f6a628c27153db4bfe0 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 3 Aug 2020 20:18:33 +0200 Subject: [PATCH] - fixed character counter in MakeUTF8. --- source/common/utility/utf8.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/utility/utf8.cpp b/source/common/utility/utf8.cpp index 1eec78130..eb6dd6bf5 100644 --- a/source/common/utility/utf8.cpp +++ b/source/common/utility/utf8.cpp @@ -249,7 +249,7 @@ const char *MakeUTF8(const char *outline, int *numchars) UTF8String.Push(encode[i]); } } - if (numchars) *numchars++; + if (numchars) (*numchars)++; } UTF8String.Push(0); return UTF8String.Data();