fixed printf formatting issue
This commit is contained in:
parent
c047f66454
commit
e7d6c9cd3c
|
@ -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 += "'";
|
||||
|
|
Loading…
Reference in New Issue