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

Comparing ray/src/hd/rholo.c (file contents):
Revision 3.77 by greg, Fri Mar 4 02:48:14 2016 UTC vs.
Revision 3.78 by greg, Mon Mar 21 19:06:08 2016 UTC

# Line 55 | Line 55 | time_t reporttime;             /* time for next report */
55   off_t   maxdisk;                /* maximum file space (bytes) */
56  
57   int     rtargc = 1;             /* rtrace command */
58 < char    *rtargv[128] = {"rtrace", NULL};
58 > char    *rtargv[MAXRTARGC] = {"rtrace", NULL};
59  
60   int     orig_mode = -1;         /* original file mode (-1 if unchanged) */
61  
# Line 415 | Line 415 | setdefaults(                   /* set default values */
415          }
416                                  /* append rendering options */
417          if (vdef(RENDER))
418 <                rtargc += wordstring(rtargv+rtargc, vval(RENDER));
418 >                rtargc += wordstring(rtargv+rtargc, MAXRTARGC-rtargc, vval(RENDER));
419          
420          if (gp == NULL)         /* already initialized? */
421                  return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines