* ChunkSelector selected from outside the priority ranges due to

~(char)0 giving an inverted integer rather than char.

* Fixed a segfault due to too small screen size, snprintf returns the
number of bytes that could have been written rather than how much
actually was.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@626 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-01-24 20:05:36 +00:00
parent 825985b8ef
commit 305e3bdf2b
15 changed files with 263 additions and 127 deletions
+15 -10
View File
@@ -52,21 +52,26 @@ namespace torrent {
class Entry;
}
class Control;
namespace display {
char* print_string(char* buf, unsigned int length, char* str);
char* print_string(char* first, char* last, char* str);
char* print_hhmmss(char* buf, unsigned int length, time_t t);
char* print_ddhhmm(char* buf, unsigned int length, time_t t);
char* print_ddmmyyyy(char* buf, unsigned int length, time_t t);
char* print_hhmmss(char* first, char* last, time_t t);
char* print_ddhhmm(char* first, char* last, time_t t);
char* print_ddmmyyyy(char* first, char* last, time_t t);
char* print_download_title(char* buf, unsigned int length, core::Download* d);
char* print_download_info(char* buf, unsigned int length, core::Download* d);
char* print_download_status(char* buf, unsigned int length, core::Download* d);
char* print_download_time_left(char* buf, unsigned int length, core::Download* d);
char* print_download_title(char* first, char* last, core::Download* d);
char* print_download_info(char* first, char* last, core::Download* d);
char* print_download_status(char* first, char* last, core::Download* d);
char* print_download_time_left(char* first, char* last, core::Download* d);
char* print_entry_tags(char* buf, unsigned int length);
char* print_entry_file(char* buf, unsigned int length, const torrent::Entry& entry);
char* print_entry_tags(char* first, char* last);
char* print_entry_file(char* first, char* last, const torrent::Entry& entry);
char* print_status_info(char* first, char* last);
char* print_status_extra(char* first, char* last, Control* c);
}