1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed missing length in SV target

This commit is contained in:
Brian Fiete 2020-05-25 05:37:56 -07:00
parent aea367b95e
commit 33286fb804

View file

@ -65,7 +65,7 @@ namespace System.Text
int utf8Len = GetDecodedUTF8Size(inBytes);
int prevSize = outStr.Length;
switch (DecodeToUTF8(inBytes, StringView(outStr.PrepareBuffer(utf8Len))))
switch (DecodeToUTF8(inBytes, StringView(outStr.PrepareBuffer(utf8Len), utf8Len)))
{
case .Ok(let val):
return .Ok(val);