diff --git a/src/util/WStringAPI.hxx b/src/util/WStringAPI.hxx index 7f5b6c57b..38357c3bb 100644 --- a/src/util/WStringAPI.hxx +++ b/src/util/WStringAPI.hxx @@ -103,13 +103,13 @@ UnsafeCopyStringP(wchar_t *dest, const wchar_t *src) noexcept { #if defined(_WIN32) || defined(__BIONIC__) || defined(__OpenBSD__) || \ defined(__NetBSD__) - /* emulate wcpcpy() */ - UnsafeCopyString(dest, src); - return dest + StringLength(dest); + /* emulate wcpcpy() */ + UnsafeCopyString(dest, src); + return dest + StringLength(dest); #elif defined(__sun) && defined (__SVR4) return std::wcpcpy(dest, src); #else - return wcpcpy(dest, src); + return wcpcpy(dest, src); #endif }