From 9bc1032f0879cf57b478adad15a3d1a6c2e34a70 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Thu, 13 Jun 2013 21:23:52 -0400 Subject: [PATCH] lbximg: Fix printf format string in identify mode. One of the flag strings would never be printed because there was simply not enough conversion specifiers in this format string. Fix that up, and also adjust the length modifiers to match the actual passed integer types. --- src/lbximg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lbximg.c b/src/lbximg.c index a7c60c6..085e191 100644 --- a/src/lbximg.c +++ b/src/lbximg.c @@ -364,7 +364,7 @@ int main(int argc, char **argv) file = "stdin"; lbx_img_getinfo(img, &info); - printf("%s is %ux%u LBX image, %u frame(s)%s%s\n", + printf("%s is %hux%hu LBX image, %hhu frame(s)%s%s%s\n", file, img->width, img->height, img->frames, info.palettesz ? ", embedded palette" : "", img->chunk ? ", chunked" : "", -- 2.43.0