From 283f34f09d4eb0553d6326f0499d2a904e059d42 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 10 Feb 2023 10:59:22 +0800 Subject: [PATCH] Fix typo * src/sfnt.c (sfnt_read_cmap_table): Fix typo. (main): Update tests. --- src/sfnt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sfnt.c b/src/sfnt.c index 83d230326f4..bf6ea3761ef 100644 --- a/src/sfnt.c +++ b/src/sfnt.c @@ -912,7 +912,8 @@ sfnt_read_cmap_table (int fd, struct sfnt_offset_subtable *subtable, being unsupported.) Return now. */ for (j = 0; j < i; ++j) - xfree (data[i]); + xfree (data[j]); + xfree (*data); xfree (*subtables); xfree (cmap); @@ -15533,8 +15534,8 @@ main (int argc, char **argv) data[i]->format); } -#define FANCY_PPEM 12 -#define EASY_PPEM 12 +#define FANCY_PPEM 40 +#define EASY_PPEM 40 interpreter = NULL; head = sfnt_read_head_table (fd, font); -- 2.39.5