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

Comparing ray/src/common/error.c (file contents):
Revision 2.8 by greg, Fri Jun 27 06:53:21 2003 UTC vs.
Revision 2.11 by greg, Wed Feb 10 18:28:00 2021 UTC

# Line 10 | Line 10 | static const char      RCSid[] = "$Id$";
10   #include "copyright.h"
11  
12   #include  <stdio.h>
13 + #include  <stdlib.h>
14  
15   #include  "rterror.h"
16  
# Line 17 | Line 18 | extern char    *strerror();
18                                  /* global list of error actions */
19   struct erract   erract[NERRS] = ERRACT_INIT;
20  
21 < char  errmsg[512];              /* global error message buffer */
21 > char  errmsg[2048];             /* global error message buffer */
22  
23  
24   void
# Line 27 | Line 28 | char  *emsg;
28   {
29          register struct erract  *ep;
30  
31 <        if (etype < 0 | etype >= NERRS)
31 >        if ((etype < 0) | (etype >= NERRS))
32                  return;
33          ep = erract + etype;
34          if (ep->pf != NULL) {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)