From 702d9e05427fc6552eb71d213c0a2235ef8c77de Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Tue, 31 Mar 2020 17:28:13 +0200 Subject: [PATCH] Fix wrong error function used in RGBGFX --- src/gfx/makepng.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gfx/makepng.c b/src/gfx/makepng.c index 6c412315..f87b9a95 100644 --- a/src/gfx/makepng.c +++ b/src/gfx/makepng.c @@ -410,8 +410,8 @@ static void update_built_palette(png_color *palette, } if (!color_exists) { if (*num_colors == colors) { - err(1, "Too many colors in input PNG file to fit into a %d-bit palette (max %d).", - depth, colors); + errx(1, "Too many colors in input PNG file to fit into a %d-bit palette (max %d).", + depth, colors); } palette[*num_colors] = *pixel_color; (*num_colors)++;