SOURCES: libtorrent-client_list.patch - fixed

charles charles at pld-linux.org
Sun Jan 7 07:47:38 CET 2007


Author: charles                      Date: Sun Jan  7 06:47:38 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixed

---- Files affected:
SOURCES:
   libtorrent-client_list.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/libtorrent-client_list.patch
diff -u SOURCES/libtorrent-client_list.patch:1.1 SOURCES/libtorrent-client_list.patch:1.2
--- SOURCES/libtorrent-client_list.patch:1.1	Thu Dec 14 10:31:17 2006
+++ SOURCES/libtorrent-client_list.patch	Sun Jan  7 07:47:32 2007
@@ -1,5 +1,5 @@
---- libtorrent-0.11.0/src/torrent/peer/client_list.cc.orig	2006-11-18 18:20:26.000000000 +0100
-+++ libtorrent-0.11.0/src/torrent/peer/client_list.cc	2006-12-14 09:58:18.868810219 +0100
+--- libtorrent-0.11.1/src/torrent/peer/client_list.cc.orig	2006-11-18 18:20:26.000000000 +0100
++++ libtorrent-0.11.1/src/torrent/peer/client_list.cc	2007-01-07 06:48:11.778801263 +0100
 @@ -80,7 +80,7 @@
  
    insert_helper(ClientInfo::TYPE_COMPACT, "A", NULL, NULL, "ABC");
@@ -23,7 +23,14 @@
      dest->mutable_key()[0] = id[1];
      dest->mutable_key()[1] = id[2];
      
-@@ -159,9 +166,16 @@
+@@ -153,15 +160,22 @@
+       dest->mutable_version()[i] = dest->mutable_upper_version()[i] = rak::hexchar_to_value(id[3 + i]);
+ 
+   } else if (std::isalpha(id[0]) && id[4] == '-' &&
+-             std::isxdigit(id[1]) && std::isxdigit(id[2]) && std::isxdigit(id[3])) {
++             std::isxdigit(id[1]) && std::isxdigit(id[2]) && std::isalnum(id[3])) {
+     dest->set_type(ClientInfo::TYPE_COMPACT);
+ 
      dest->mutable_key()[0] = id[0];
      dest->mutable_key()[1] = '\0';
      
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/libtorrent-client_list.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list