diff options
-rw-r--r-- | usr.bin/head/head.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/head/head.c b/usr.bin/head/head.c index 36aa9bf..5de0cba 100644 --- a/usr.bin/head/head.c +++ b/usr.bin/head/head.c @@ -146,7 +146,7 @@ head_bytes(FILE *fp, off_t cnt) size_t readlen; while (cnt) { - if (cnt < sizeof(buf)) + if ((uintmax_t)cnt < sizeof(buf)) readlen = cnt; else readlen = sizeof(buf); |