From 9e62f50027b66821f49c3dd96f6b311f57c55623 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 12 May 2021 10:08:55 -0400 Subject: [PATCH] StringView fix --- BeefySysLib/platform/posix/PosixCommon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;