summaryrefslogtreecommitdiffstats
path: root/src/StringUtils.cpp
diff options
context:
space:
mode:
authorPeter Bell <peterbell10@live.co.uk>2020-07-06 21:01:36 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-07-06 21:53:04 +0200
commit829f8d46f0ae5d26441c6e960a1f3cdc618aea0e (patch)
tree133c93b61336735b3505cef52331d3ebc313d9c1 /src/StringUtils.cpp
parentcWindow: Convert XYZ to Vector3 (#4764) (diff)
downloadcuberite-829f8d46f0ae5d26441c6e960a1f3cdc618aea0e.tar
cuberite-829f8d46f0ae5d26441c6e960a1f3cdc618aea0e.tar.gz
cuberite-829f8d46f0ae5d26441c6e960a1f3cdc618aea0e.tar.bz2
cuberite-829f8d46f0ae5d26441c6e960a1f3cdc618aea0e.tar.lz
cuberite-829f8d46f0ae5d26441c6e960a1f3cdc618aea0e.tar.xz
cuberite-829f8d46f0ae5d26441c6e960a1f3cdc618aea0e.tar.zst
cuberite-829f8d46f0ae5d26441c6e960a1f3cdc618aea0e.zip
Diffstat (limited to 'src/StringUtils.cpp')
-rw-r--r--src/StringUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp
index f1f0314f1..fc19decb3 100644
--- a/src/StringUtils.cpp
+++ b/src/StringUtils.cpp
@@ -56,7 +56,7 @@ AString & vPrintf(AString & str, const char * format, fmt::printf_args args)
{
ASSERT(format != nullptr);
fmt::memory_buffer Buffer;
- fmt::printf(Buffer, fmt::to_string_view(format), args);
+ fmt::vprintf(Buffer, fmt::to_string_view(format), args);
str.assign(Buffer.data(), Buffer.size());
return str;
}
@@ -79,7 +79,7 @@ AString & vAppendPrintf(AString & a_String, const char * format, fmt::printf_arg
{
ASSERT(format != nullptr);
fmt::memory_buffer Buffer;
- fmt::printf(Buffer, fmt::to_string_view(format), args);
+ fmt::vprintf(Buffer, fmt::to_string_view(format), args);
a_String.append(Buffer.data(), Buffer.size());
return a_String;
}