--- ray/src/common/otypes.c 2003/02/25 02:47:21 2.3 +++ ray/src/common/otypes.c 2011/02/18 18:47:56 2.5 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: otypes.c,v 2.3 2003/02/25 02:47:21 greg Exp $"; +static const char RCSid[] = "$Id: otypes.c,v 2.5 2011/02/18 18:47:56 greg Exp $"; #endif /* * Object type lookup and error reporting @@ -36,9 +36,10 @@ OBJREC *o; int etyp; char *msg; { - char msgbuf[128]; + char msgbuf[512]; sprintf(msgbuf, "%s for %s \"%s\"", - msg, ofun[o->otype].funame, o->oname); + msg, ofun[o->otype].funame, + o->oname!=NULL ? o->oname : "(NULL)"); error(etyp, msgbuf); }