Fix the coredump that occurs when, from the tfpt prompt, a 'c' command is

issued without an argument.
This commit is contained in:
guido 2002-01-04 13:42:14 +00:00
parent e7a3824f45
commit f43a533e3e

View File

@ -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;
}