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

Comparing ray/src/rt/rtmain.c (file contents):
Revision 2.40 by greg, Thu Oct 20 17:18:33 2022 UTC vs.
Revision 2.42 by greg, Mon Feb 6 20:34:17 2023 UTC

# Line 104 | Line 104 | main(int  argc, char  *argv[])
104          progname = argv[0] = fixargv0(argv[0]);
105                                          /* feature check only? */
106          strcat(RFeatureList, RTRACE_FEATURES);
107 <        if (!strcmp(argv[1], "-features"))
107 >        if (argc == 2 && !strcmp(argv[1], "-features"))
108                  return feature_status(argc-2, argv+2);
109                                          /* add trace notify function */
110          for (i = 0; addobjnotify[i] != NULL; i++)
# Line 328 | Line 328 | main(int  argc, char  *argv[])
328          if (outform != 'a')
329                  SET_FILE_BINARY(stdout);
330          rval = setrtoutput();
331 <        readoct(octname = octnm, loadflags, &thescene, NULL);
331 >        octname = savqstr(octnm);
332 >        readoct(octname, loadflags, &thescene, NULL);
333          nsceneobjs = nobjects;
334  
335          if (loadflags & IO_INFO) {      /* print header */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines