commit | 5e1189e187f6a7957dadb8eda2c271c4a0777a23 | [log] [tgz] |
---|---|---|
author | Erik Andersen <andersen@codepoet.org> | Sat Apr 15 16:34:54 2000 +0000 |
committer | Erik Andersen <andersen@codepoet.org> | Sat Apr 15 16:34:54 2000 +0000 |
tree | 140cd30d77342c730afbc1df863bec93c63978a8 | |
parent | 95c1c1e05f290ccbcc2ff863a62bcee5d57bf5c8 [diff] [blame] |
More documentation updates, and minor fixes to make things sync up with the docs. -Erik
diff --git a/mnc.c b/mnc.c index 54cfdc6..60c18a9 100644 --- a/mnc.c +++ b/mnc.c
@@ -56,11 +56,11 @@ fd_set readfds, testfds; - if (argc <= 1 || **(argv + 1) == '-') { - usage(mnc_usage); - } argc--; argv++; + if (argc < 2 || **(argv + 1) == '-') { + usage(mnc_usage); + } sfd = socket(AF_INET, SOCK_STREAM, 0);