diff options
Diffstat (limited to 'libparsepcf_preparse_font.c')
| -rw-r--r-- | libparsepcf_preparse_font.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libparsepcf_preparse_font.c b/libparsepcf_preparse_font.c index 058365a..63c245e 100644 --- a/libparsepcf_preparse_font.c +++ b/libparsepcf_preparse_font.c @@ -3,11 +3,13 @@ int -libparsepcf_preparse_font(const char *file, size_t size, struct libparsepcf_font *font) +libparsepcf_preparse_font(const void *file, size_t size, struct libparsepcf_font *font) { size_t min = SIZE_MAX, max = 0, table_i, table_n; struct libparsepcf_table *tables = NULL; + *font = (struct libparsepcf_font){0}; + if (libparsepcf_get_table_count(file, size, &table_n)) goto fail; tables = calloc(table_n, sizeof(*tables)); |
