--- ray/src/util/netproc.c 1996/02/20 15:55:01 2.3 +++ ray/src/util/netproc.c 1997/09/18 16:10:19 2.6 @@ -10,9 +10,11 @@ static char SCCSid[] = "$SunId$ LBL"; #include #include +#include #include #include #include "netproc.h" +#include "paths.h" #include "vfork.h" /* select call compatibility stuff */ #ifndef FD_SETSIZE @@ -37,7 +39,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[128]; /* our working directory */ +static char ourdir[MAXPATH]; /* our working directory */ static char ouruser[32]; /* our user name */ static char *ourshell; /* our user's shell */ @@ -63,12 +65,12 @@ int np; if (ps == NULL) return(NULL); if (!ourhost[0]) { /* initialize */ - char dirtmp[128]; + char dirtmp[MAXPATH]; register char *cp; register int len; strcpy(ourhost, myhostname()); - getcwd(dirtmp, sizeof(dirtmp)); + getwd(dirtmp); if ((cp = getenv("HOME")) != NULL) { if (!strcmp(cp, dirtmp)) ourdir[0] = '\0'; @@ -169,7 +171,7 @@ register PSERVER *ps; char *command; int (*compf)(); { - char udirt[128]; + char udirt[MAXPATH]; char *av[16]; int pfd[2], pid; register int i;