fix connection tester torrent creation

This commit is contained in:
Arvid Norberg
2011-08-01 00:03:43 +00:00
parent bc2f0c8c5e
commit a3a687e833

View File

@@ -454,7 +454,7 @@ void generate_torrent(std::vector<char>& buf, int size)
const size_type total_size = size_type(piece_size) * num_pieces; const size_type total_size = size_type(piece_size) * num_pieces;
size_type s = total_size; size_type s = total_size;
int i = 0; int i = 0;
while (s) while (s > 0)
{ {
char buf[100]; char buf[100];
snprintf(buf, sizeof(buf), "t/stress_test%d", i); snprintf(buf, sizeof(buf), "t/stress_test%d", i);