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)
|
for (int i = 0; i < e.string_length(); ++i)
|
||||||
{
|
{
|
||||||
char str[5];
|
char tmp[5];
|
||||||
snprintf(str, sizeof(str), "%02x", (unsigned char)str[i]);
|
snprintf(tmp, sizeof(tmp), "%02x", (unsigned char)str[i]);
|
||||||
ret += str;
|
ret += tmp;
|
||||||
}
|
}
|
||||||
ret += "'";
|
ret += "'";
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue