From a345ddaeedf4c288665d204e715713b17eb4e132 Mon Sep 17 00:00:00 2001 From: Steveice10 <1269164+Steveice10@users.noreply.github.com> Date: Sun, 20 Sep 2015 15:57:49 -0700 Subject: [PATCH] Fix list parsing. --- source/cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/cmd.cpp b/source/cmd.cpp index ae278c2..3c90b47 100644 --- a/source/cmd.cpp +++ b/source/cmd.cpp @@ -299,7 +299,7 @@ std::vector cmd_parse_list(const std::string list) { std::vector ret; std::string::size_type lastPos = 0; std::string::size_type pos = 0; - while((pos = list.find(',')) != std::string::npos) { + while((pos = list.find(',', lastPos)) != std::string::npos) { ret.push_back(list.substr(lastPos, pos - lastPos)); lastPos = pos + 1; }