Skip to content
Snippets Groups Projects
Commit 53e0bc5f authored by Julian Oes's avatar Julian Oes Committed by Lorenz Meier
Browse files

POSIX: use up to 20 command line arguments

This fixes the case where more than 10 args were needed for instance
when starting mavlink with all its options.
parent bae8adc1
No related branches found
No related tags found
No related merge requests found
......@@ -252,10 +252,11 @@ static void usage()
static void process_line(string &line, bool exit_on_fail)
{
vector<string> appargs(10);
vector<string> appargs(20);
stringstream(line) >> appargs[0] >> appargs[1] >> appargs[2] >> appargs[3] >> appargs[4] >> appargs[5] >> appargs[6] >>
appargs[7] >> appargs[8] >> appargs[9];
appargs[7] >> appargs[8] >> appargs[9] >> appargs[10] >> appargs[11] >> appargs[12] >> appargs[13] >>
appargs[14] >> appargs[15] >> appargs[16] >> appargs[17] >> appargs[18] >> appargs[19];
run_cmd(appargs, exit_on_fail);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment