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

Comparing ray/src/common/readobj.c (file contents):
Revision 2.19 by greg, Fri Jul 2 16:45:32 2004 UTC vs.
Revision 2.20 by greg, Tue Mar 30 12:42:33 2010 UTC

# Line 88 | Line 88 | FILE  *fp;
88                                          /* get modifier */
89          strcpy(sbuf, "EOF");
90          fgetword(sbuf, MAXSTR, fp);
91 +        if (strchr(sbuf, '\t')) {
92 +                sprintf(errmsg, "(%s): illegal tab in modifier \"%s\"",
93 +                                        name, sbuf);
94 +                error(USER, errmsg);
95 +        }
96          if (!strcmp(sbuf, VOIDID))
97                  objp->omod = OVOID;
98          else if (!strcmp(sbuf, ALIASMOD))
# Line 106 | Line 111 | FILE  *fp;
111                                          /* get identifier */
112          sbuf[0] = '\0';
113          fgetword(sbuf, MAXSTR, fp);
114 +        if (strchr(sbuf, '\t')) {
115 +                sprintf(errmsg, "(%s): illegal tab in identifier \"%s\"",
116 +                                        name, sbuf);
117 +                error(USER, errmsg);
118 +        }
119          objp->oname = savqstr(sbuf);
120                                          /* get arguments */
121          if (objp->otype == MOD_ALIAS) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines