Fix crash on unknown option

getopts requires the last element of longopts to be filled with zeros.
This commit is contained in:
Nestorfish 2016-09-29 21:11:58 +02:00 committed by sfan5
parent 4db3040f2a
commit 42b36ecdaa

@ -82,6 +82,7 @@ int main(int argc, char *argv[])
{"max-y", required_argument, 0, 'c'}, {"max-y", required_argument, 0, 'c'},
{"zoom", required_argument, 0, 'z'}, {"zoom", required_argument, 0, 'z'},
{"colors", required_argument, 0, 'C'}, {"colors", required_argument, 0, 'C'},
{0, 0, 0, 0}
}; };
std::string input; std::string input;