From 42b36ecdaa917f024b4b47b97cd5e68f33ebf142 Mon Sep 17 00:00:00 2001 From: Nestorfish Date: Thu, 29 Sep 2016 21:11:58 +0200 Subject: [PATCH] Fix crash on unknown option getopts requires the last element of longopts to be filled with zeros. --- mapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mapper.cpp b/mapper.cpp index e842bd2..b638ba8 100644 --- a/mapper.cpp +++ b/mapper.cpp @@ -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;