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

Comparing ray/src/rt/func.c (file contents):
Revision 2.30 by greg, Wed May 20 13:16:20 2015 UTC vs.
Revision 2.31 by greg, Tue Mar 22 03:56:17 2016 UTC

# Line 85 | Line 85 | set_eparams(char *prms)
85                          goto bad_params;
86                  cpd = vname;
87                  while (*prms && (*prms != '=') & !isspace(*prms)) {
88 <                        if (!isid(*prms))
88 >                        if (!isid(*prms) | (cpd-vname >= RMAXWORD-1))
89                                  goto bad_params;
90                          *cpd++ = *prms++;
91                  }
# Line 286 | Line 286 | loadfunc(                      /* load definition file */
286  
287          if ((ffname = getpath(fname, getrlibpath(), R_OK)) == NULL) {
288                  sprintf(errmsg, "cannot find function file \"%s\"", fname);
289 <                error(USER, errmsg);
289 >                error(SYSTEM, errmsg);
290          }
291          fcompile(ffname);
292   }
# Line 298 | Line 298 | l_arg(char *nm)                        /* return nth real argument */
298          int  n;
299  
300          if (fobj == NULL)
301 <                error(USER, "arg(n) called without a context");
301 >                error(INTERNAL, "arg(n) called without a modifier context");
302  
303          n = argument(1) + .5;           /* round to integer */
304  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines