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

Comparing ray/src/util/rad.c (file contents):
Revision 2.131 by greg, Sat Jun 10 15:49:55 2023 UTC vs.
Revision 2.133 by greg, Mon Dec 23 01:39:27 2024 UTC

# Line 131 | Line 131 | char   *viewselect = NULL;     /* specific view only */
131  
132   #define DEF_RPICT_PATH  "rpict"         /* default rpict path */
133  
134 + #define R_CMDMAX        (5*PATH_MAX+512)
135                                  /* command paths */
136   char    c_oconv[256] = "oconv";
137   char    c_mkillum[256] = "mkillum";
# Line 528 | Line 529 | static void
529   oconv(void)                             /* run oconv and mkillum if necessary */
530   {
531          static char     illumtmp[] = "ilXXXXXX";
532 <        char    combuf[PATH_MAX], ocopts[64], mkopts[1024];
532 >        char    combuf[R_CMDMAX], ocopts[64], mkopts[1024];
533  
534          oconvopts(ocopts);              /* get options */
535          if (octreedate < scenedate) {   /* check date on original octree */
# Line 1415 | Line 1416 | rvu(                           /* run rvu with first view */
1416   )
1417   {
1418          char    *vw;
1419 <        char    combuf[PATH_MAX];
1419 >        char    combuf[R_CMDMAX];
1420                                          /* build command */
1421          if (touchonly || (vw = getview(0, NULL)) == NULL)
1422                  return;
# Line 1613 | Line 1614 | rpict(                         /* run rpict and pfilt for each view */
1614                  } else {
1615                          if (overture) {         /* run overture calculation */
1616                                  sprintf(combuf,
1617 <                                        "%s%s %s%s -x 64 -y 64 -ps 1 %s > %s",
1618 <                                                c_rpict, rep, vw, opts,
1617 >                                        "%s%s %s%s%s -x 64 -y 64 -ps 1 %s > %s",
1618 >                                                c_rpict, rep, vw, opts, po,
1619                                                  oct1name, overfile);
1620                                  if (!do_rpiece || !next_process(0)) {
1621                                          if (runcom(combuf)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines