fixed shadowing variable bug

This commit is contained in:
Arvid Norberg 2009-05-19 22:22:22 +00:00
parent e7d6c9cd3c
commit 98ee6daddc
1 changed files with 3 additions and 3 deletions

View File

@ -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;