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

Comparing ray/src/common/otypes.c (file contents):
Revision 2.3 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.5 by greg, Fri Feb 18 18:47:56 2011 UTC

# Line 1 | Line 1
1   #ifndef lint
2 < static const char       RCSid[] = "$Id$";
2 > static const char RCSid[] = "$Id$";
3   #endif
4   /*
5   * Object type lookup and error reporting
# Line 36 | Line 36 | OBJREC  *o;
36   int  etyp;
37   char  *msg;
38   {
39 <        char  msgbuf[128];
39 >        char  msgbuf[512];
40  
41          sprintf(msgbuf, "%s for %s \"%s\"",
42 <                        msg, ofun[o->otype].funame, o->oname);
42 >                        msg, ofun[o->otype].funame,
43 >                        o->oname!=NULL ? o->oname : "(NULL)");
44          error(etyp, msgbuf);
45   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines