From acc9d0575b64b69a8ae92c8554aaaca3649e1ea0 Mon Sep 17 00:00:00 2001 From: Claire Xenia Wolf Date: Mon, 19 Oct 2020 13:40:57 +0200 Subject: [PATCH] Fix argument handling in connect_rpc Signed-off-by: Claire Xenia Wolf --- frontends/rpc/rpc_frontend.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontends/rpc/rpc_frontend.cc b/frontends/rpc/rpc_frontend.cc index 5a40001cb..c12640ef0 100644 --- a/frontends/rpc/rpc_frontend.cc +++ b/frontends/rpc/rpc_frontend.cc @@ -401,10 +401,11 @@ struct RpcFrontend : public Pass { std::string arg = args[argidx]; if (arg == "-exec" && argidx+1 < args.size()) { command.insert(command.begin(), args.begin() + argidx + 1, args.end()); + argidx = args.size()-1; continue; } if (arg == "-path" && argidx+1 < args.size()) { - path = args[argidx+1]; + path = args[++argidx]; continue; } break; -- 2.30.2