This commit is contained in:
Rodney 2024-06-27 11:04:08 +02:00 committed by GitHub
commit 9b1ae3c45f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -429,8 +429,7 @@ size_t os_wcs_to_utf8(const wchar_t *str, size_t len, char *dst,
return 0;
if (out_len)
out_len =
wchar_to_utf8(str, in_len, dst, out_len + 1, 0);
out_len = wchar_to_utf8(str, in_len, dst, out_len, 0);
dst[out_len] = 0;
}