Skip to content

Commit

Permalink
Make sure to leave one extra getopt option to please gtk_init.
Browse files Browse the repository at this point in the history
  • Loading branch information
peff committed Aug 5, 2004
1 parent f4c6708 commit 0208b0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ int main(int argc, char **argv) {
case '?': printhelp(stderr); exit(1);
}
}
argv += optind;
argc -= optind;
argv += optind - 1;
argc -= optind - 1;

if(gui_init(&argc, &argv, gui_name) < 0)
xdie("unable to init interface");
Expand Down

0 comments on commit 0208b0c

Please sign in to comment.