summaryrefslogtreecommitdiff
path: root/sys/src/libttf
diff options
context:
space:
mode:
authorSigrid <ftrvxmtrx@gmail.com>2020-08-04 11:42:43 +0200
committerSigrid <ftrvxmtrx@gmail.com>2020-08-04 11:42:43 +0200
commite9df4c718a902fe6a8f490331092c2f92c194ce4 (patch)
treecb893006d2bf18462366e374b6aafe1a6d58c6c6 /sys/src/libttf
parent4bbf1d12b5c79eae94ba931052af66001659cc91 (diff)
libttf: check directory() result
Diffstat (limited to 'sys/src/libttf')
-rw-r--r--sys/src/libttf/head.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libttf/head.c b/sys/src/libttf/head.c
index 9a50c7f16..cb07424cd 100644
--- a/sys/src/libttf/head.c
+++ b/sys/src/libttf/head.c
@@ -292,7 +292,7 @@ ttfopen(char *name, int ppem, int)
return nil;
u->bin = b;
u->nkern = -1;
- directory(u);
+ if(directory(u) < 0) goto error;
if(ttfgototable(u, "head") < 0) goto error;
ttfunpack(u, "16 w W 16 wwww 6 w", &u->flags, &u->emsize, &u->xmin, &u->ymin, &u->xmax, &u->ymax, &u->longloca);
if(ttfgototable(u, "maxp") < 0) goto error;