From fa4cb48830757dcea1405605aa204de4796de9c3 Mon Sep 17 00:00:00 2001 From: Galen Alderson Date: Wed, 29 Mar 2017 12:17:01 -0400 Subject: [PATCH] Fix segfault when using short password option (-m) --- src/ympd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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': -- 2.20.1