From 6c64aeddcbb243ef988529a99daba4fe83939cd8 Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 3 Feb 2007 14:05:32 +0000 Subject: [PATCH] When loading a Type 1 font, remember to terminate the linked list we load it into. git-svn-id: svn://svn.tartarus.org/sgt/halibut@7199 cda61777-01e9-0310-a592-d414129be87e --- 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; } -- 2.11.0