[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/android 283f34f09d 1/5: Fix typo
From: |
Po Lu |
Subject: |
feature/android 283f34f09d 1/5: Fix typo |
Date: |
Fri, 10 Feb 2023 06:16:09 -0500 (EST) |
branch: feature/android
commit 283f34f09d4eb0553d6326f0499d2a904e059d42
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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 83d230326f..bf6ea3761e 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);