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

Comparing ray/src/cv/mgf2rad.c (file contents):
Revision 2.21 by greg, Tue Feb 27 20:11:27 1996 UTC vs.
Revision 2.22 by greg, Thu Jun 6 11:49:53 1996 UTC

# Line 348 | Line 348 | char   **av;
348          if (ac < 2)
349                  return(MG_EARGC);
350                                          /* construct output file name */
351 <        if ((op = strrchr(av[1], '/')) == NULL)
351 >        if ((op = strrchr(av[1], '/')) != NULL)
352 >                op++;
353 >        else
354                  op = av[1];
355          (void)strcpy(fname, op);
356          if ((op = strrchr(fname, '.')) == NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines