1
0
Fork 0
forked from len0rd/rockbox

PDBox: Use correct values of maximal string size for snprintf.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22154 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Wincent Balin 2009-08-04 13:52:43 +00:00
parent 28fbb49c0b
commit 7996e77334
10 changed files with 25 additions and 28 deletions

View file

@ -929,7 +929,7 @@ static void numbertocolor(int n, char *s)
blue = ((n / 10) % 10);
green = n % 10;
#ifdef ROCKBOX
snprintf(s, 8, "#%2.2x%2.2x%2.2x",
snprintf(s, 10, "#%2.2x%2.2x%2.2x",
rangecolor(red), rangecolor(blue), rangecolor(green));
#else
sprintf(s, "#%2.2x%2.2x%2.2x", rangecolor(red), rangecolor(blue),