From 1e92eef2b89afc4330652db964daf20e0efa84d3 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 3 Feb 2007 14:05:32 +0000 Subject: When loading a Type 1 font, remember to terminate the linked list we load it into. [originally from svn r7199] --- in_pf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/in_pf.c b/in_pf.c index 0867376..8f7a4ac 100644 --- a/in_pf.c +++ b/in_pf.c @@ -71,6 +71,7 @@ static t1_data *load_pfb_file(FILE *fp, filepos *pos) { tail->data = snewn(tail->length, unsigned char); if (fread(tail->data, 1, tail->length, fp) != tail->length) abort(); } + tail->next = NULL; } static t1_data *load_pfa_file(FILE *fp, filepos *pos) { @@ -90,6 +91,7 @@ static t1_data *load_pfa_file(FILE *fp, filepos *pos) { } ret->data = sresize(ret->data, off, unsigned char); ret->length = off; + ret->next = NULL; return ret; } -- cgit v1.1