mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 22:52:31 +00:00
* 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:
@@ -71,7 +71,7 @@ WindowLogComplete::redraw() {
|
||||
|
||||
for (core::Log::iterator itr = m_log->begin(), e = m_log->end(); itr != e && pos < m_canvas->get_height(); ++itr) {
|
||||
char buffer[16];
|
||||
print_hhmmss(buffer, 16, static_cast<time_t>(itr->first.seconds()));
|
||||
print_hhmmss(buffer, buffer + 16, static_cast<time_t>(itr->first.seconds()));
|
||||
|
||||
m_canvas->print(0, pos++, "(%s) %s", buffer, itr->second.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user