From b3128685d973935326596ffbffc2559614da7d71 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 28 Jun 2010 01:12:54 +0000 Subject: [PATCH] replace &x[0] with x.c_str() --- src/peer_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 0fbfd59df..bf8815106 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -615,7 +615,7 @@ namespace libtorrent #endif x.append((char*)&t->torrent_file().info_hash()[0], 20); - sha1_hash hash = hasher(&x[0], x.size()).final(); + sha1_hash hash = hasher(x.c_str(), x.size()).final(); for (;;) { char* p = (char*)&hash[0];