=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/look/look.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- src/usr.bin/look/look.c 2014/05/20 01:25:23 1.15 +++ src/usr.bin/look/look.c 2015/02/06 23:21:59 1.16 @@ -1,4 +1,4 @@ -/* $OpenBSD: look.c,v 1.15 2014/05/20 01:25:23 guenther Exp $ */ +/* $OpenBSD: look.c,v 1.16 2015/02/06 23:21:59 millert Exp $ */ /* $NetBSD: look.c,v 1.7 1995/08/31 22:41:02 jtc Exp $ */ /*- @@ -48,7 +48,7 @@ #include #include #include -#include +#include #include #include #include @@ -126,7 +126,7 @@ if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb)) err(2, "%s", file); - if (sb.st_size > SIZE_T_MAX) + if (sb.st_size > SIZE_MAX) errc(2, EFBIG, "%s", file); if ((front = mmap(NULL, (size_t)sb.st_size, PROT_READ, MAP_PRIVATE, fd, (off_t)0)) == MAP_FAILED)