diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-17 18:10:39 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-17 18:10:39 +0200 |
commit | 45f0261cfa26628fbde3458f5b0f513a6192a4f0 (patch) | |
tree | 18c8573801eca8cdb191add68f7a81fab8e12f47 /libparsepsf.c | |
parent | Clearify that output parameters are not updated if no glyph is found (diff) | |
download | libparsepsf-45f0261cfa26628fbde3458f5b0f513a6192a4f0.tar.gz libparsepsf-45f0261cfa26628fbde3458f5b0f513a6192a4f0.tar.bz2 libparsepsf-45f0261cfa26628fbde3458f5b0f513a6192a4f0.tar.xz |
Fix value of *unrecognised_versionp
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libparsepsf.c')
-rw-r--r-- | libparsepsf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libparsepsf.c b/libparsepsf.c index a3be5f3..67e7158 100644 --- a/libparsepsf.c +++ b/libparsepsf.c @@ -326,7 +326,7 @@ libparsepsf_parse_font(const void *data, size_t size, struct libparsepsf_font *f if (header.psf2.height * ((header.psf2.width + 7) / 8) != header.psf2.charsize) goto ebfont; if (header.psf2.version > PSF2_MAXVERSION) - *unrecognised_versionp = 1; + *unrecognised_versionp = header.psf2.version; fontp->num_glyphs = (size_t)header.psf2.num_glyphs; fontp->height = (size_t)header.psf2.height; fontp->width = (size_t)header.psf2.width; |