diff --git a/BeefySysLib/platform/posix/PosixCommon.cpp b/BeefySysLib/platform/posix/PosixCommon.cpp index 0d3efb03..198f2d2e 100644 --- a/BeefySysLib/platform/posix/PosixCommon.cpp +++ b/BeefySysLib/platform/posix/PosixCommon.cpp @@ -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 argvArr;