git: 49f924187fb5 - main - tcopy: Catch up to expand_number() now being signed.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Aug 2025 10:42:16 UTC
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;