]> git.mdlowis.com Git - proto/labwc.git/commitdiff
labnag: fix segfault caused by providing --timeout as long option
authorJohan Malm <jgm323@gmail.com>
Tue, 23 Sep 2025 18:27:45 +0000 (19:27 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 24 Sep 2025 19:13:51 +0000 (20:13 +0100)
clients/labnag.c

index 20fb1dbe8fcbd4f0a69c16b13a9f44214a178b51..bea25dd1224ca9614ca9f5b6b3e9d5a04e479ca2 100644 (file)
@@ -1370,7 +1370,7 @@ nag_parse_options(int argc, char **argv, struct nag *nag,
                {"detailed-button", required_argument, NULL, 'L'},
                {"message", required_argument, NULL, 'm'},
                {"output", required_argument, NULL, 'o'},
-               {"timeout", no_argument, NULL, 't'},
+               {"timeout", required_argument, NULL, 't'},
                {"version", no_argument, NULL, 'v'},
 
                {"background", required_argument, NULL, TO_COLOR_BACKGROUND},