We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcd4e9b commit 558a4e8Copy full SHA for 558a4e8
1 file changed
lib/inc/sys_string/impl/platforms/windows_bstr.h
@@ -347,7 +347,7 @@ namespace sysstr::util
347
using converter = utf_converter<utf_encoding_of<Char>, utf16>;
348
UINT our_size = ensure_valid_size(converter::converted_length(str, str + length));
349
char16_t * data = m_data.init(our_size);
350
- converter::convert(str, str + our_size, data);
+ converter::convert(str, str + length, data);
351
}
352
353
0 commit comments