ref: 702d9e05427fc6552eb71d213c0a2235ef8c77de
parent: c0aff678e9f1a88163781ccad94b889d7961bc57
author: ISSOtm <[email protected]>
date: Tue Mar 31 13:28:13 EDT 2020
Fix wrong error function used in RGBGFX
--- a/src/gfx/makepng.c
+++ b/src/gfx/makepng.c
@@ -410,8 +410,8 @@
}
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)++;