diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2007-02-03 14:05:32 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2007-02-03 14:05:32 +0000 |
| commit | 1e92eef2b89afc4330652db964daf20e0efa84d3 (patch) | |
| tree | 00ba863b8f646ce31d101138559c3be007965571 | |
| parent | 62be4468c8d814e5f66e5c2c7dc21a865bd91be3 (diff) | |
| download | halibut-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |