Changeset 9108 for branches


Ignore:
Timestamp:
Sep 12, 2009, 7:26:14 AM (13 years ago)
Author:
charles
Message:

(1.7x gtk) increase the temporary buffer size to avoid string truncations

Location:
branches/1.7x/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7x/gtk/torrent-cell-renderer.c

    r8914 r9108  
    190190        case TR_STATUS_SEED:
    191191        {
    192             char buf[128];
     192            char buf[512];
    193193            if( torStat->activity != TR_STATUS_DOWNLOAD )
    194194            {
  • branches/1.7x/gtk/tr-window.c

    r9006 r9108  
    333333    char u[32];
    334334    char d[32];
    335     char buf[128];
     335    char buf[512];
    336336    const char * fmt;
    337337    const gboolean b = pref_flag_get( TR_PREFS_KEY_ALT_SPEED_ENABLED );
     
    584584    else
    585585    {
    586         char      buf[128];
     586        char      buf[512];
    587587        char      timebuf[64];
    588588        const int seconds = maxTime - now;
     
    10811081    if( p && p->core )
    10821082    {
    1083         char      buf[128];
     1083        char      buf[512];
    10841084        const int torrentCount = gtk_tree_model_iter_n_children(
    10851085            tr_core_model( p->core ), NULL );
     
    11071107{
    11081108    const char *            pch;
    1109     char                    up[32], down[32], ratio[32], buf[128];
     1109    char                    up[32], down[32], ratio[32], buf[512];
    11101110    struct tr_session_stats stats;
    11111111    tr_session *            session = tr_core_session( p->core );
Note: See TracChangeset for help on using the changeset viewer.