From: Galen Alderson Date: Wed, 29 Mar 2017 16:17:01 +0000 (-0400) Subject: Fix segfault when using short password option (-m) X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=fa4cb48830757dcea1405605aa204de4796de9c3;p=ympd.git Fix segfault when using short password option (-m) --- diff --git a/src/ympd.c b/src/ympd.c index f27c38e..304f5b8 100644 --- a/src/ympd.c +++ b/src/ympd.c @@ -91,7 +91,7 @@ int main(int argc, char **argv) {0, 0, 0, 0 } }; - while((n = getopt_long(argc, argv, "h:p:w:u:v:m", + while((n = getopt_long(argc, argv, "h:p:w:u:vm:", long_options, &option_index)) != -1) { switch (n) { case 'h':