--- ray/src/util/netproc.c 2003/04/23 00:52:34 2.10 +++ ray/src/util/netproc.c 2003/06/30 14:59:13 2.11 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: netproc.c,v 2.10 2003/04/23 00:52:34 greg Exp $"; +static const char RCSid[] = "$Id: netproc.c,v 2.11 2003/06/30 14:59:13 schorsch Exp $"; #endif /* * Parallel network process handling routines @@ -8,6 +8,8 @@ static const char RCSid[] = "$Id: netproc.c,v 2.10 200 #include #include #include +#include + #include "selcall.h" #include "netproc.h" #include "paths.h" @@ -18,7 +20,7 @@ PSERVER *pslist = NULL; /* global process server list static PROC *pindex[FD_SETSIZE]; /* process index table */ static char ourhost[64]; /* this host name */ -static char ourdir[MAXPATH]; /* our working directory */ +static char ourdir[PATH_MAX]; /* our working directory */ static char ouruser[32]; /* our user name */ static char *ourshell; /* our user's shell */ @@ -43,12 +45,12 @@ int np; if (ps == NULL) return(NULL); if (!ourhost[0]) { /* initialize */ - char dirtmp[MAXPATH]; + char dirtmp[PATH_MAX]; register char *cp; register int len; strcpy(ourhost, myhostname()); - getwd(dirtmp); + getcwd(dirtmp, sizeof(dirtmp)); if ((cp = getenv("HOME")) != NULL) { if (!strcmp(cp, dirtmp)) ourdir[0] = '\0'; @@ -149,7 +151,7 @@ register PSERVER *ps; char *command; int (*compf)(); { - char udirt[MAXPATH]; + char udirt[PATH_MAX]; char *av[16]; int pfd[2], pid; register int i;