fixed printf formatting issue

This commit is contained in:
Arvid Norberg 2009-05-19 20:53:27 +00:00
parent c047f66454
commit e7d6c9cd3c
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ namespace libtorrent
for (int i = 0; i < e.string_length(); ++i)
{
char str[5];
snprintf(str, sizeof(str), "%02x", str[i]);
snprintf(str, sizeof(str), "%02x", (unsigned char)str[i]);
ret += str;
}
ret += "'";