ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/netproc.c
(Generate patch)

Comparing ray/src/util/netproc.c (file contents):
Revision 2.10 by greg, Wed Apr 23 00:52:34 2003 UTC vs.
Revision 2.11 by schorsch, Mon Jun 30 14:59:13 2003 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   #include <stdio.h>
9   #include <signal.h>
10   #include <fcntl.h>
11 + #include <unistd.h>
12 +
13   #include "selcall.h"
14   #include "netproc.h"
15   #include "paths.h"
# Line 18 | Line 20 | PSERVER        *pslist = NULL;         /* global process server list
20   static PROC     *pindex[FD_SETSIZE];    /* process index table */
21  
22   static char     ourhost[64];    /* this host name */
23 < static char     ourdir[MAXPATH];        /* our working directory */
23 > static char     ourdir[PATH_MAX];       /* our working directory */
24   static char     ouruser[32];    /* our user name */
25   static char     *ourshell;      /* our user's shell */
26  
# Line 43 | Line 45 | int    np;
45          if (ps == NULL)
46                  return(NULL);
47          if (!ourhost[0]) {              /* initialize */
48 <                char    dirtmp[MAXPATH];
48 >                char    dirtmp[PATH_MAX];
49                  register char   *cp;
50                  register int    len;
51  
52                  strcpy(ourhost, myhostname());
53 <                getwd(dirtmp);
53 >                getcwd(dirtmp, sizeof(dirtmp));
54                  if ((cp = getenv("HOME")) != NULL) {
55                          if (!strcmp(cp, dirtmp))
56                                  ourdir[0] = '\0';
# Line 149 | Line 151 | register PSERVER       *ps;
151   char    *command;
152   int     (*compf)();
153   {
154 <        char    udirt[MAXPATH];
154 >        char    udirt[PATH_MAX];
155          char    *av[16];
156          int     pfd[2], pid;
157          register int    i;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines