fixed shadowing variable bug
This commit is contained in:
parent
e7d6c9cd3c
commit
98ee6daddc
|
@ -404,9 +404,9 @@ namespace libtorrent
|
|||
}
|
||||
for (int i = 0; i < e.string_length(); ++i)
|
||||
{
|
||||
char str[5];
|
||||
snprintf(str, sizeof(str), "%02x", (unsigned char)str[i]);
|
||||
ret += str;
|
||||
char tmp[5];
|
||||
snprintf(tmp, sizeof(tmp), "%02x", (unsigned char)str[i]);
|
||||
ret += tmp;
|
||||
}
|
||||
ret += "'";
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue