mirror of
https://github.com/minetest/minetestmapper.git
synced 2025-07-01 08:00:22 +02:00
Fix crash on unknown option
getopts requires the last element of longopts to be filled with zeros.
This commit is contained in:
@ -82,6 +82,7 @@ int main(int argc, char *argv[])
|
||||
{"max-y", required_argument, 0, 'c'},
|
||||
{"zoom", required_argument, 0, 'z'},
|
||||
{"colors", required_argument, 0, 'C'},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
std::string input;
|
||||
|
Reference in New Issue
Block a user