Show
Ignore:
Timestamp:
03/12/10 05:29:11 (2 years ago)
Author:
rakshasa
Message:

* Fixed the linux fallocate detection script.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/libtorrent/src/torrent/object_stream.cc

    r1141 r1143  
    873873 
    874874  // DEBUG: Remove this. 
    875   { 
    876     torrent::Object obj; 
    877     if (object_read_bencode_c(output.buffer.first, output.pos, &obj) != output.pos) { 
    878       std::string escaped = rak::copy_escape_html(output.buffer.first, output.pos); 
    879  
    880       //char buffer[1024]; 
    881       //      sprintf(buffer, "Verified wrong, %u, '%u', '%s'.", std::distanescaped.c_str()); 
    882  
    883       throw torrent::internal_error("Invalid bencode data generated: '" + escaped + "'"); 
    884     } 
    885   } 
     875//   { 
     876//     torrent::Object obj; 
     877//     if (object_read_bencode_c(output.buffer.first, output.pos, &obj) != output.pos) { 
     878//       std::string escaped = rak::copy_escape_html(output.buffer.first, output.pos); 
     879 
     880//       //char buffer[1024]; 
     881//       //      sprintf(buffer, "Verified wrong, %u, '%u', '%s'.", std::distanescaped.c_str()); 
     882 
     883//       throw torrent::internal_error("Invalid bencode data generated: '" + escaped + "'"); 
     884//     } 
     885//   } 
    886886 
    887887  // Don't flush the buffer.