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

Comparing ray/src/gen/mkillum.c (file contents):
Revision 2.7 by greg, Fri Jan 7 14:51:28 1994 UTC vs.
Revision 2.8 by greg, Tue Oct 17 20:34:55 1995 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
1 > /* Copyright (c) 1995 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 263 | Line 263 | char   *nm;
263                  case 'm':                       /* material name */
264                          if (*++cp != '=')
265                                  break;
266 <                        if (!*++cp)
266 >                        if (!*++cp || isspace(*cp))
267                                  break;
268                          atos(thisillum.matname, MAXSTR, cp);
269                          cp = sskip(cp);
# Line 275 | Line 275 | char   *nm;
275                  case 'f':                       /* data file name */
276                          if (*++cp != '=')
277                                  break;
278 <                        if (!*++cp) {
278 >                        if (!*++cp || isspace(*cp)) {
279                                  strcpy(thisillum.datafile,thisillum.matname);
280                                  thisillum.dfnum = 0;
281                                  thisillum.flags &= ~IL_DATCLB;
# Line 361 | Line 361 | char   *nm;
361                  case 'o':                       /* output file */
362                          if (*++cp != '=')
363                                  break;
364 <                        if (!*++cp)
364 >                        if (!*++cp || isspace(*cp))
365                                  break;
366                          atos(buf, sizeof(buf), cp);
367                          cp = sskip(cp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines