SOURCES: libtorrent-tracker.patch (NEW) - fixed a bug that gave a...

charles charles at pld-linux.org
Wed Jul 27 16:41:07 CEST 2005


Author: charles                      Date: Wed Jul 27 14:41:07 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
-  fixed a bug that gave a 1/16 chance of a torrent messing up the
   request url by adding an space

---- Files affected:
SOURCES:
   libtorrent-tracker.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/libtorrent-tracker.patch
diff -u /dev/null SOURCES/libtorrent-tracker.patch:1.1
--- /dev/null	Wed Jul 27 16:41:07 2005
+++ SOURCES/libtorrent-tracker.patch	Wed Jul 27 16:41:02 2005
@@ -0,0 +1,11 @@
+--- libtorrent-0.7.0/src/tracker/tracker_http.cc.orig	2005-07-18 21:10:26.000000000 +0200
++++ libtorrent-0.7.0/src/tracker/tracker_http.cc	2005-07-27 13:36:37.000000000 +0200
+@@ -94,7 +94,7 @@
+   s << "&peer_id=";
+   escape_string(m_info->get_me()->get_id(), s);
+ 
+-  s << "&key=" << std::hex << std::setw(8) << m_info->get_key() << std::dec;
++  s << "&key=" << std::hex << std::setw(8) << std::setfill('0') << m_info->get_key() << std::dec;
+ 
+   if (!m_trackerId.empty()) {
+     s << "&trackerid=";
================================================================



More information about the pld-cvs-commit mailing list