summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/convbdf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/convbdf.c b/tools/convbdf.c
index 513b1d7007..010e8ee2c2 100644
--- a/tools/convbdf.c
+++ b/tools/convbdf.c
@@ -737,8 +737,8 @@ int rotleft(unsigned char *dst, /* output buffer */
737 src_words = BITMAP_WORDS(width) * height; 737 src_words = BITMAP_WORDS(width) * height;
738 738
739 if(((height + 7) / 8) * width > dstlen) { 739 if(((height + 7) / 8) * width > dstlen) {
740 fprintf(stderr, "%s:%d %d x %d overflows %d bytes buffer, needs %d\n", 740 fprintf(stderr, "%s:%d %d x %d overflows %ld bytes buffer, needs %d\n",
741 __FILE__, __LINE__, width, height, (int)dstlen, 741 __FILE__, __LINE__, width, height, (unsigned long)dstlen,
742 ((height + 7) / 8) * width ); 742 ((height + 7) / 8) * width );
743 return 0; 743 return 0;
744 } 744 }