Skip to content

Commit

Permalink
Merge pull request #49 from ddxtanx/master
Browse files Browse the repository at this point in the history
Fix char bug so opt parsing doesn't infinite loop
  • Loading branch information
GhostNaN committed May 8, 2023
2 parents 6b086ab + c7e1e62 commit 61ec53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ static void parse_command_line(int argc, char **argv, struct wl_state *state) {

char *layer_name;

char opt;
int opt;
while ((opt = getopt_long(argc, argv, "hvfpsn:l:o:Z:", long_options, NULL)) != -1) {

switch (opt) {
Expand Down

0 comments on commit 61ec53d

Please sign in to comment.