From 6b8fc61b772b394d7a205531b492101c519dc47d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 17 Aug 2021 17:44:35 +0200 Subject: Add support for gzip compression and prepare for PSF support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libskrift_apply_glyph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libskrift_apply_glyph.c') diff --git a/libskrift_apply_glyph.c b/libskrift_apply_glyph.c index 6e61732..4cf5afc 100644 --- a/libskrift_apply_glyph.c +++ b/libskrift_apply_glyph.c @@ -53,7 +53,7 @@ libskrift_apply_glyph(LIBSKRIFT_CONTEXT *ctx, const struct libskrift_glyph *glyp const uint32_t u32 = 0x01020304L; const uint64_t u64 = 0x0102030405060708LL; - if (image->format == LIBSKRIFT_RAW || (unsigned int)image->format > (unsigned int)LEN(libskrift_format_settings)) { + if (image->format == LIBSKRIFT_RAW || (unsigned int)image->format > (unsigned int)ELEMSOF(libskrift_format_settings)) { errno = EINVAL; return -1; } -- cgit v1.2.3-70-g09d2