From a3a687e833b3fbfcf7053b61f41c83ec100729bf Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 1 Aug 2011 00:03:43 +0000 Subject: [PATCH] fix connection tester torrent creation --- examples/connection_tester.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/connection_tester.cpp b/examples/connection_tester.cpp index 4619270ef..d49fa1248 100644 --- a/examples/connection_tester.cpp +++ b/examples/connection_tester.cpp @@ -454,7 +454,7 @@ void generate_torrent(std::vector& buf, int size) const size_type total_size = size_type(piece_size) * num_pieces; size_type s = total_size; int i = 0; - while (s) + while (s > 0) { char buf[100]; snprintf(buf, sizeof(buf), "t/stress_test%d", i);