--- ray/src/common/error.c 2003/06/27 06:53:21 2.8 +++ ray/src/common/error.c 2021/02/10 18:28:00 2.11 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: error.c,v 2.8 2003/06/27 06:53:21 greg Exp $"; +static const char RCSid[] = "$Id: error.c,v 2.11 2021/02/10 18:28:00 greg Exp $"; #endif /* * error.c - standard error reporting function @@ -10,6 +10,7 @@ static const char RCSid[] = "$Id: error.c,v 2.8 2003/0 #include "copyright.h" #include +#include #include "rterror.h" @@ -17,7 +18,7 @@ extern char *strerror(); /* global list of error actions */ struct erract erract[NERRS] = ERRACT_INIT; -char errmsg[512]; /* global error message buffer */ +char errmsg[2048]; /* global error message buffer */ void @@ -27,7 +28,7 @@ char *emsg; { register struct erract *ep; - if (etype < 0 | etype >= NERRS) + if ((etype < 0) | (etype >= NERRS)) return; ep = erract + etype; if (ep->pf != NULL) {