summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2007-02-03 14:05:32 +0000
committerBen Harris <bjh21@bjh21.me.uk>2007-02-03 14:05:32 +0000
commit1e92eef2b89afc4330652db964daf20e0efa84d3 (patch)
tree00ba863b8f646ce31d101138559c3be007965571
parent62be4468c8d814e5f66e5c2c7dc21a865bd91be3 (diff)
downloadhalibut-1e92eef2b89afc4330652db964daf20e0efa84d3.zip
halibut-1e92eef2b89afc4330652db964daf20e0efa84d3.tar.gz
halibut-1e92eef2b89afc4330652db964daf20e0efa84d3.tar.bz2
halibut-1e92eef2b89afc4330652db964daf20e0efa84d3.tar.xz
When loading a Type 1 font, remember to terminate the linked list we load
it into. [originally from svn r7199]
-rw-r--r--in_pf.c2
1 files changed, 2 insertions, 0 deletions
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;
}