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

StringView fix

This commit is contained in:
Brian Fiete 2021-05-12 10:08:55 -04:00
parent 57609543a3
commit 9e62f50027

View file

@ -928,7 +928,7 @@ BFP_EXPORT BfpSpawn* BFP_CALLTYPE BfpSpawn_Create(const char* inTargetPath, cons
{
if (firstCharIdx != -1)
{
stringViews.Add(Beefy::StringView(args, firstCharIdx, i - firstCharIdx));
stringViews.Add(Beefy::StringView(args + firstCharIdx, i - firstCharIdx));
firstCharIdx = -1;
}
}
@ -947,7 +947,7 @@ BFP_EXPORT BfpSpawn* BFP_CALLTYPE BfpSpawn_Create(const char* inTargetPath, cons
}
}
if (firstCharIdx != -1)
stringViews.Add(Beefy::StringView(args, firstCharIdx, i - firstCharIdx));
stringViews.Add(Beefy::StringView(args + firstCharIdx, i - firstCharIdx));
Beefy::Array<char*> argvArr;