aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tcopy/tcopy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tcopy/tcopy.cc')
-rw-r--r--usr.bin/tcopy/tcopy.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tcopy/tcopy.cc b/usr.bin/tcopy/tcopy.cc
index 891c37f871e5..a1dd35682aac 100644
--- a/usr.bin/tcopy/tcopy.cc
+++ b/usr.bin/tcopy/tcopy.cc
@@ -580,7 +580,9 @@ getspace(size_t blk)
static void
usage(void)
{
- fprintf(stderr, "usage: tcopy [-cvx] [-s maxblk] [src [dest]]\n");
+ fprintf(stderr,
+ "usage: tcopy [-crvx] [-l logfile] [-s maxblk] [src [dest]]\n"
+ );
exit(1);
}
@@ -738,7 +740,7 @@ main(int argc, char *argv[])
warnx("illegal block size");
usage();
}
- if (maxblk <= 0) {
+ if (tmp <= 0) {
warnx("illegal block size");
usage();
}