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

Comparing ray/src/rt/mkpmap.c (file contents):
Revision 2.3 by schorsch, Thu Mar 10 18:25:46 2016 UTC vs.
Revision 2.4 by greg, Mon Mar 21 19:06:08 2016 UTC

# Line 297 | Line 297 | int main (int argc, char* argv [])
297                
298                 if (argv[i][3] == 'O') {
299                    /* Get port modifiers file */
300 <                  rval = wordfile(portLp, getpath(argv [++i],
301 <                                  getrlibpath(), R_OK));
300 >                  rval = wordfile(portLp, AMBLLEN-(portLp-amblist),
301 >                                getpath(argv [++i], getrlibpath(), R_OK));
302                    if (rval < 0) {
303                        sprintf(errmsg, "cannot open photon port file %s",
304                                argv [i]);
# Line 328 | Line 328 | int main (int argc, char* argv [])
328                
329                 if (argv[i][3] == 'S') {
330                    /* Get sensor modifiers from file */
331 <                  rval = wordfile(sensLp, getpath(argv [++i],
332 <                                  getrlibpath(), R_OK));
331 >                  rval = wordfile(sensLp, MAXSET-(sensLp-photonSensorList),
332 >                                getpath(argv [++i], getrlibpath(), R_OK));
333                    if (rval < 0) {
334                        sprintf(errmsg, "cannot open antimatter sensor file %s",
335                                argv [i]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines