mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fixed some large-file stack overflow issues
This commit is contained in:
parent
bb64d99ac4
commit
82d2963a9e
2 changed files with 2 additions and 2 deletions
|
@ -1242,7 +1242,7 @@ namespace IDE.ui
|
||||||
chars[i] = (char8)char8Data[i].mChar;
|
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;
|
BfProject bfProject = null;
|
||||||
if ((projectSource != null) && (mIsBeefSource))
|
if ((projectSource != null) && (mIsBeefSource))
|
||||||
|
|
|
@ -55,7 +55,7 @@ namespace IDE.util
|
||||||
{
|
{
|
||||||
if (lineEndingKind == .CrLf)
|
if (lineEndingKind == .CrLf)
|
||||||
{
|
{
|
||||||
String newStr = scope .(str);
|
String newStr = scope .(8192)..Append(str);
|
||||||
newStr.Replace("\n", "\r\n");
|
newStr.Replace("\n", "\r\n");
|
||||||
return Create(kind, newStr);
|
return Create(kind, newStr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue