summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-04-10 21:49:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-04-10 21:49:40 +0000
commit10080b842067a53731b10951da6a0b1c33689e68 (patch)
tree2b7cc845b0bab3933dd1e4fbdc80f1d07ca30cc7 /tools
parentbf8e9994c0df66eedc980cef2f62cfc550471970 (diff)
downloadrockbox-10080b842067a53731b10951da6a0b1c33689e68.tar.gz
rockbox-10080b842067a53731b10951da6a0b1c33689e68.tar.bz2
rockbox-10080b842067a53731b10951da6a0b1c33689e68.zip
decrease the risk of an overflow due to typecase from unsigned to signed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17065 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-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 */
src_words = BITMAP_WORDS(width) * height;
if(((height + 7) / 8) * width > dstlen) {
- fprintf(stderr, "%s:%d %d x %d overflows %d bytes buffer, needs %d\n",
- __FILE__, __LINE__, width, height, (int)dstlen,
+ fprintf(stderr, "%s:%d %d x %d overflows %ld bytes buffer, needs %d\n",
+ __FILE__, __LINE__, width, height, (unsigned long)dstlen,
((height + 7) / 8) * width );
return 0;
}