git: 6582915c59e8 - main - tcopy: Fix braino.

From: Poul-Henning Kamp <phk_at_FreeBSD.org>
Date: Sun, 17 Aug 2025 19:39:21 UTC
The branch main has been updated by phk:

URL: https://cgit.FreeBSD.org/src/commit/?id=6582915c59e8a974d65fafc25c39ec2713a02d28

commit 6582915c59e8a974d65fafc25c39ec2713a02d28
Author:     Poul-Henning Kamp <phk@FreeBSD.org>
AuthorDate: 2025-08-17 19:38:56 +0000
Commit:     Poul-Henning Kamp <phk@FreeBSD.org>
CommitDate: 2025-08-17 19:38:56 +0000

    tcopy: Fix braino.
    
    Spotted by: Gunther Nikl
---
 usr.bin/tcopy/tcopy.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/tcopy/tcopy.cc b/usr.bin/tcopy/tcopy.cc
index 891c37f871e5..37a146376c2e 100644
--- a/usr.bin/tcopy/tcopy.cc
+++ b/usr.bin/tcopy/tcopy.cc
@@ -738,7 +738,7 @@ main(int argc, char *argv[])
 				warnx("illegal block size");
 				usage();
 			}
-			if (maxblk <= 0) {
+			if (tmp <= 0) {
 				warnx("illegal block size");
 				usage();
 			}