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

Comparing ray/src/rt/text.c (file contents):
Revision 1.2 by greg, Tue Apr 11 13:30:35 1989 UTC vs.
Revision 1.3 by greg, Thu Jul 27 22:25:17 1989 UTC

# Line 160 | Line 160 | int  col;
160                          txt[1] = NULL;
161                  } else {                                /* text file */
162                          if ((s = getpath(tm->oargs.sarg[tndx(tm)],
163 <                                        libpath)) == NULL) {
163 >                                        libpath, R_OK)) == NULL) {
164                                  sprintf(errmsg, "cannot find text file \"%s\"",
165                                                  tm->oargs.sarg[tndx(tm)]);
166                                  error(USER, errmsg);
# Line 211 | Line 211 | char  *fname;
211                  if (!strcmp(f->name, fname))
212                          return(f);
213                                                  /* load the font file */
214 <        if ((pathname = getpath(fname, libpath)) == NULL) {
214 >        if ((pathname = getpath(fname, libpath, R_OK)) == NULL) {
215                  sprintf(errmsg, "cannot find font file \"%s\"", fname);
216                  error(USER, errmsg);
217          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines