From: Nick Bowler Date: Fri, 14 Jun 2013 01:23:52 +0000 (-0400) Subject: lbximg: Fix printf format string in identify mode. X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/commitdiff_plain/9bc1032f0879cf57b478adad15a3d1a6c2e34a70?hp=4ec9360786d0bb19cffc76818c1a4c33043f68e1 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. --- 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" : "",