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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/bx/src/commandline.cpp b/3rdparty/bx/src/commandline.cpp
index df322560b56..d9f6fb4e8de 100644
--- a/3rdparty/bx/src/commandline.cpp
+++ b/3rdparty/bx/src/commandline.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright 2010-2018 Branimir Karadzic. All rights reserved.
+ * Copyright 2010-2019 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx#license-bsd-2-clause
*/
@@ -39,7 +39,7 @@ namespace bx
switch (state)
{
case SkipWhitespace:
- for (; isSpace(*curr); ++curr) {}; // skip whitespace
+ for (; isSpace(*curr) && *curr!=_term; ++curr) {}; // skip whitespace
state = SetTerm;
break;