--- ray/src/common/error.c 2003/02/25 02:47:21 2.7 +++ 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.7 2003/02/25 02:47: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 @@ -9,13 +9,16 @@ static const char RCSid[] = "$Id: error.c,v 2.7 2003/0 #include "copyright.h" -#include "standard.h" +#include +#include +#include "rterror.h" + 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 @@ -25,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) {