Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Aug 2025 19:39:21 GMT
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6582915c59e8 - main - tcopy: Fix braino.
Message-ID:  <202508171939.57HJdL15016377@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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();
 			}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202508171939.57HJdL15016377>