Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2025 10:42:16 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: 49f924187fb5 - main - tcopy: Catch up to expand_number() now being signed.
Message-ID:  <202508131042.57DAgGO4062873@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=49f924187fb54b381153b427c9c4dbda933226ca

commit 49f924187fb54b381153b427c9c4dbda933226ca
Author:     Poul-Henning Kamp <phk@FreeBSD.org>
AuthorDate: 2025-08-13 10:41:46 +0000
Commit:     Poul-Henning Kamp <phk@FreeBSD.org>
CommitDate: 2025-08-13 10:41:46 +0000

    tcopy: Catch up to expand_number() now being signed.
---
 usr.bin/tcopy/tcopy.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/usr.bin/tcopy/tcopy.cc b/usr.bin/tcopy/tcopy.cc
index 62032740a788..891c37f871e5 100644
--- a/usr.bin/tcopy/tcopy.cc
+++ b/usr.bin/tcopy/tcopy.cc
@@ -710,7 +710,7 @@ main(int argc, char *argv[])
 	int ch;
 	unsigned long maxphys = 0;
 	size_t l_maxphys = sizeof maxphys;
-	uint64_t tmp;
+	int64_t tmp;
 	int rawfile = 0;
 
 	setbuf(stderr, NULL);
@@ -738,11 +738,11 @@ main(int argc, char *argv[])
 				warnx("illegal block size");
 				usage();
 			}
-			maxblk = tmp;
-			if (maxblk == 0) {
+			if (maxblk <= 0) {
 				warnx("illegal block size");
 				usage();
 			}
+			maxblk = tmp;
 			break;
 		case 'v':
 			op = VERIFY;



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