aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorGuido van Rooij <guido@FreeBSD.org>2002-01-04 13:42:14 +0000
committerGuido van Rooij <guido@FreeBSD.org>2002-01-04 13:42:14 +0000
commit57aa7d50276985fcf3ceca99ad0f8e49fac5c064 (patch)
tree84676b068551d77f5ea31217c10c1667c024c9cf /usr.bin
parent2f936029a406da55f3966dbc95cfc2b19548b380 (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tftp/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c
index ca2e3464fc9a4..dde8169933504 100644
--- a/usr.bin/tftp/main.c
+++ b/usr.bin/tftp/main.c
@@ -200,7 +200,7 @@ setpeer(argc, argv)
argc = margc;
argv = margv;
}
- if (argc > 3) {
+ if ((argc < 2) || (argv > 3)) {
printf("usage: %s host-name [port]\n", argv[0]);
return;
}