=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rpcgen/rpc_main.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -r1.28 -r1.29 --- src/usr.bin/rpcgen/rpc_main.c 2014/11/18 20:54:28 1.28 +++ src/usr.bin/rpcgen/rpc_main.c 2015/01/16 06:40:11 1.29 @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc_main.c,v 1.28 2014/11/18 20:54:28 krw Exp $ */ +/* $OpenBSD: rpc_main.c,v 1.29 2015/01/16 06:40:11 deraadt Exp $ */ /* $NetBSD: rpc_main.c,v 1.9 1996/02/19 11:12:43 pk Exp $ */ /* @@ -39,12 +39,12 @@ #define RPCGEN_VERSION "199506"/* This program's version (year & month) */ #include -#include #include #include #include #include #include +#include #include #include #include "rpc_parse.h" @@ -77,7 +77,7 @@ static char *svcclosetime = "120"; static char *CPP = "/usr/bin/cpp"; static char CPPFLAGS[] = "-C"; -static char pathbuf[MAXPATHLEN]; +static char pathbuf[PATH_MAX]; static char *allv[] = { "rpcgen", "-s", "udp", "-s", "tcp", };