summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/unicode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/unicode.cpp')
-rw-r--r--src/lib/util/unicode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/unicode.cpp b/src/lib/util/unicode.cpp
index de6ef06e5c9..c4ee6c56cde 100644
--- a/src/lib/util/unicode.cpp
+++ b/src/lib/util/unicode.cpp
@@ -384,7 +384,7 @@ int utf8_from_uchar(char *utf8string, size_t count, char32_t uchar)
std::string utf8_from_uchar(char32_t uchar)
{
char buffer[UTF8_CHAR_MAX];
- auto len = utf8_from_uchar(buffer, ARRAY_LENGTH(buffer), uchar);
+ auto len = utf8_from_uchar(buffer, std::size(buffer), uchar);
return std::string(buffer, len);
}