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

Fixed some large-file stack overflow issues

This commit is contained in:
Brian Fiete 2020-06-13 04:57:58 -07:00
parent bb64d99ac4
commit 82d2963a9e
2 changed files with 2 additions and 2 deletions

View file

@ -1242,7 +1242,7 @@ namespace IDE.ui
chars[i] = (char8)char8Data[i].mChar;
}
String text = scope String(chars, 0, chars.Count);
String text = scope String()..Append(StringView(chars, 0, chars.Count));
BfProject bfProject = null;
if ((projectSource != null) && (mIsBeefSource))

View file

@ -55,7 +55,7 @@ namespace IDE.util
{
if (lineEndingKind == .CrLf)
{
String newStr = scope .(str);
String newStr = scope .(8192)..Append(str);
newStr.Replace("\n", "\r\n");
return Create(kind, newStr);
}