summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/src/commandline.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bx/src/commandline.cpp')
-rw-r--r--3rdparty/bx/src/commandline.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/3rdparty/bx/src/commandline.cpp b/3rdparty/bx/src/commandline.cpp
index df322560b56..ca31636ca76 100644
--- a/3rdparty/bx/src/commandline.cpp
+++ b/3rdparty/bx/src/commandline.cpp
@@ -1,9 +1,8 @@
/*
- * Copyright 2010-2018 Branimir Karadzic. All rights reserved.
- * License: https://github.com/bkaradzic/bx#license-bsd-2-clause
+ * Copyright 2010-2022 Branimir Karadzic. All rights reserved.
+ * License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/
-#include "bx_p.h"
#include <bx/commandline.h>
#include <bx/string.h>
@@ -39,7 +38,7 @@ namespace bx
switch (state)
{
case SkipWhitespace:
- for (; isSpace(*curr); ++curr) {}; // skip whitespace
+ for (; isSpace(*curr) && *curr!=_term; ++curr) {}; // skip whitespace
state = SetTerm;
break;
@@ -47,7 +46,7 @@ namespace bx
if ('"' == *curr)
{
term = '"';
- ++curr; // skip begining quote
+ ++curr; // skip beginning quote
}
else
{