=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tail/read.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- src/usr.bin/tail/read.c 2009/10/27 23:59:44 1.14 +++ src/usr.bin/tail/read.c 2015/02/06 23:21:59 1.15 @@ -1,4 +1,4 @@ -/* $OpenBSD: read.c,v 1.14 2009/10/27 23:59:44 deraadt Exp $ */ +/* $OpenBSD: read.c,v 1.15 2015/02/06 23:21:59 millert Exp $ */ /* $NetBSD: read.c,v 1.4 1994/11/23 07:42:07 jtc Exp $ */ /*- @@ -35,10 +35,10 @@ #include #include -#include #include #include +#include #include #include #include @@ -67,7 +67,7 @@ int wrap; char *sp; - if (off > SIZE_T_MAX) + if (off > SIZE_MAX) errx(1, "offset too large"); if ((sp = p = malloc(off)) == NULL) @@ -148,7 +148,7 @@ size_t cnt, recno, blen, newsize; char *sp = NULL, *newp = NULL; - if (off > SIZE_T_MAX) + if (off > SIZE_MAX) errx(1, "offset too large"); if ((lines = calloc(off, sizeof(*lines))) == NULL)