From 33286fb804ae328f0bd3c6c64ab4ef709359056d Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 25 May 2020 05:37:56 -0700 Subject: [PATCH] Fixed missing length in SV target --- BeefLibs/corlib/src/Text/Encoding.bf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BeefLibs/corlib/src/Text/Encoding.bf b/BeefLibs/corlib/src/Text/Encoding.bf index a0ab5f0c..4421897d 100644 --- a/BeefLibs/corlib/src/Text/Encoding.bf +++ b/BeefLibs/corlib/src/Text/Encoding.bf @@ -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);