diff --git a/libutil/parseoffset.c b/libutil/parseoffset.c index 37673da..362a782 100644 --- a/libutil/parseoffset.c +++ b/libutil/parseoffset.c @@ -52,7 +52,7 @@ parseoffset(const char *str) } /* prevent overflow */ - if (res > (SIZE_MAX / scale)) { + if (res > (SSIZE_MAX / scale)) { weprintf("parseoffset %s: out of range\n", str); return -1; }