--- ray/src/common/font.c 2003/07/27 22:12:01 2.16 +++ ray/src/common/font.c 2004/03/26 21:29:19 2.18 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: font.c,v 2.16 2003/07/27 22:12:01 schorsch Exp $"; +static const char RCSid[] = "$Id: font.c,v 2.18 2004/03/26 21:29:19 schorsch Exp $"; #endif /* * Polygonal font handling routines @@ -7,8 +7,10 @@ static const char RCSid[] = "$Id: font.c,v 2.16 2003/0 #include "copyright.h" -#include "standard.h" +#include +#include "rtio.h" +#include "rterror.h" #include "font.h" #define galloc(nv) (GLYPH *)malloc(sizeof(GLYPH)+2*sizeof(GORD)*(nv)) @@ -24,7 +26,7 @@ getfont(fname) /* return font fname */ char *fname; { FILE *fp; - char *pathname, *err; + char *pathname, *err = NULL; unsigned wsum, hsum, ngly; int gn, ngv, gv; register GLYPH *g; @@ -208,7 +210,7 @@ FONT *f; /* font */ int cis; /* target intercharacter spacing */ int nsi; /* minimum number of spaces for indent */ { - register char *end, *tab; + register char *end, *tab = NULL; GLYPH *gp; short *nsp; int alen, len, width;