summaryrefslogtreecommitdiffstats
path: root/usr.bin/head
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/head')
-rw-r--r--usr.bin/head/head.c2
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);
OpenPOWER on IntegriCloud