Changeset 6335


Ignore:
Timestamp:
Jul 15, 2008, 6:24:18 PM (14 years ago)
Author:
charles
Message:

missed a few `snprintf' calls in r6334

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wx/torrent-list.cc

    r5457 r6335  
    145145            size = size >> 10;
    146146        char buf[512];
    147         snprintf( buf, sizeof(buf), "%.*f %s", bestDecimal(size), (double)size, sizestrs[i] );
     147        tr_snprintf( buf, sizeof(buf), "%.*f %s", bestDecimal(size), (double)size, sizestrs[i] );
    148148        return toWxStr( buf );
    149149    }
     
    237237        {
    238238            case COL_POSITION:
    239                 snprintf( buf, sizeof(buf), "%d", 666 );
     239                tr_snprintf( buf, sizeof(buf), "%d", 666 );
    240240                xstr = toWxStr( buf );
    241241                break;
    242242
    243243            case COL_PERCENT_DONE:
    244                 snprintf( buf, sizeof(buf), "%d%%", (int)(s->percentDone*100.0) );
     244                tr_snprintf( buf, sizeof(buf), "%d%%", (int)(s->percentDone*100.0) );
    245245                xstr = toWxStr( buf );
    246246                break;
     
    441441        case COL_PEERS:
    442442            /* FIXME: this is all peers, not just leechers
    443             snprintf( buf, sizeof(buf), "%d (%d)", s->peersTotal, s->peersConnected );
     443            tr_snprintf( buf, sizeof(buf), "%d (%d)", s->peersTotal, s->peersConnected );
    444444            xstr = toWxStr( buf );*/
    445445            break;
     
    476476
    477477        case COL_SEEDS:
    478             /*snprintf( buf, sizeof(buf), "%d", s->seeders );
     478            /*tr_snprintf( buf, sizeof(buf), "%d", s->seeders );
    479479            xstr = toWxStr( buf );*/
    480480            break;
Note: See TracChangeset for help on using the changeset viewer.