aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/look/look.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/look/look.c b/usr.bin/look/look.c
index ac6082e6ff15..0088864c81ca 100644
--- a/usr.bin/look/look.c
+++ b/usr.bin/look/look.c
@@ -134,7 +134,7 @@ main(int argc, char *argv[])
do {
if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb))
err(2, "%s", file);
- if (sb.st_size > (off_t)SIZE_T_MAX)
+ if ((uintmax_t)sb.st_size > (uintmax_t)SIZE_T_MAX)
errx(2, "%s: %s", file, strerror(EFBIG));
if (sb.st_size == 0) {
close(fd);