cast for signed/unsigned mixup

This commit is contained in:
itojun 2003-07-14 18:27:48 +00:00
parent 1bffbcd4a1
commit 46471dc1e9
1 changed files with 1 additions and 1 deletions

View File

@ -1000,7 +1000,7 @@ bad:
for (k=0; k<j; k++)
{
snprintf((char *)n,
sizeof(buf[2]) - (n - buf[2]),
sizeof(buf[2]) - ((char *)n - &buf[2][0]),
"%02X",(unsigned char)*(p++));
n+=2;
}