diff options
author | Garrett Credi <garrettcredi@gmail.com> | 2023-05-07 23:05:54 -0500 |
---|---|---|
committer | Garrett Credi <garrettcredi@gmail.com> | 2023-05-07 23:05:54 -0500 |
commit | 8c34f5d38e1c3363bdaaaf54a8996ff5499262db (patch) | |
tree | f47ef3251963be2274a9f9cd273593031c2ec2c9 | |
parent | 6b086ab34db8ef58b9ed7e6b714bdcb6b5a57f0f (diff) |
Fix char bug so opt parsing doesn't infinite loop
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -892,7 +892,7 @@ static void parse_command_line(int argc, char **argv, struct wl_state *state) { char *layer_name; char opt; - while ((opt = getopt_long(argc, argv, "hvfpsn:l:o:Z:", long_options, NULL)) != -1) { + while ((opt = getopt_long(argc, argv, "hvfpsn:l:o:Z:", long_options, NULL)) != 255) { switch (opt) { case 'h': |