mirror of
https://github.com/transmission/transmission
synced 2024-12-23 08:13:27 +00:00
(trunk gtk) increase the temporary buffer size to avoid string truncations
This commit is contained in:
parent
e7a5aafb27
commit
c7741230af
2 changed files with 4 additions and 4 deletions
|
@ -189,7 +189,7 @@ getShortStatusString( const tr_stat * torStat,
|
|||
case TR_STATUS_DOWNLOAD:
|
||||
case TR_STATUS_SEED:
|
||||
{
|
||||
char buf[128];
|
||||
char buf[512];
|
||||
if( torStat->activity != TR_STATUS_DOWNLOAD )
|
||||
{
|
||||
tr_strlratio( buf, torStat->ratio, sizeof( buf ) );
|
||||
|
|
|
@ -585,7 +585,7 @@ onAskTrackerQueryTooltip( GtkWidget * widget UNUSED,
|
|||
}
|
||||
else
|
||||
{
|
||||
char buf[128];
|
||||
char buf[512];
|
||||
char timebuf[64];
|
||||
const int seconds = maxTime - now;
|
||||
|
||||
|
@ -1082,7 +1082,7 @@ updateTorrentCount( PrivateData * p )
|
|||
{
|
||||
if( p && p->core )
|
||||
{
|
||||
char buf[128];
|
||||
char buf[512];
|
||||
const int torrentCount = gtk_tree_model_iter_n_children(
|
||||
tr_core_model( p->core ), NULL );
|
||||
const int visibleCount = gtk_tree_model_iter_n_children(
|
||||
|
@ -1108,7 +1108,7 @@ static void
|
|||
updateStats( PrivateData * p )
|
||||
{
|
||||
const char * pch;
|
||||
char up[32], down[32], ratio[32], buf[128];
|
||||
char up[32], down[32], ratio[32], buf[512];
|
||||
struct tr_session_stats stats;
|
||||
tr_session * session = tr_core_session( p->core );
|
||||
|
||||
|
|
Loading…
Reference in a new issue