--- ray/src/common/font.c 2003/02/25 02:47:21 2.13 +++ ray/src/common/font.c 2003/06/07 12:50:20 2.15 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: font.c,v 2.13 2003/02/25 02:47:21 greg Exp $"; +static const char RCSid[] = "$Id: font.c,v 2.15 2003/06/07 12:50:20 schorsch Exp $"; #endif /* * Polygonal font handling routines @@ -37,7 +37,7 @@ char *fname; return(f); } /* load the font file */ - if ((pathname = getpath(fname, getlibpath(), R_OK)) == NULL) { + if ((pathname = getpath(fname, getrlibpath(), R_OK)) == NULL) { sprintf(errmsg, "cannot find font file \"%s\"", fname); error(USER, errmsg); } @@ -117,6 +117,7 @@ fonterr: error(USER, errmsg); memerr: error(SYSTEM, "out of memory in fontglyph"); + return NULL; /* pro forma return */ }