=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/grep/file.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- src/usr.bin/grep/file.c 2010/07/02 20:48:48 1.11 +++ src/usr.bin/grep/file.c 2015/01/16 06:40:08 1.12 @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.11 2010/07/02 20:48:48 nicm Exp $ */ +/* $OpenBSD: file.c,v 1.12 2015/01/16 06:40:08 deraadt Exp $ */ /*- * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav @@ -26,16 +26,15 @@ * SUCH DAMAGE. */ -#include - #include #include #include +#include #include #include "grep.h" -static char fname[MAXPATHLEN]; +static char fname[PATH_MAX]; #ifndef NOZ static char *lnbuf; static size_t lnbuflen;