Fix segfault when using short password option (-m)
authorGalen Alderson <unknownloner.online@gmail.com>
Wed, 29 Mar 2017 16:17:01 +0000 (12:17 -0400)
committerGalen Alderson <unknownloner.online@gmail.com>
Wed, 29 Mar 2017 16:17:01 +0000 (12:17 -0400)
src/ympd.c

index f27c38e..304f5b8 100644 (file)
@@ -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':