]> git.draconx.ca Git - liblbx.git/commitdiff
lbximg: Fix printf format string in identify mode.
authorNick Bowler <nbowler@draconx.ca>
Fri, 14 Jun 2013 01:23:52 +0000 (21:23 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 14 Jun 2013 20:35:09 +0000 (16:35 -0400)
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

index a7c60c6d54d0330a7111ba06cc9008891c7f739a..085e191fd8101c314100ef7a95486095e3ae7ec3 100644 (file)
@@ -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" : "",