]> granicus.if.org Git - transmission/commitdiff
missed a few `snprintf' calls in r6334
authorCharles Kerr <charles@transmissionbt.com>
Tue, 15 Jul 2008 18:24:18 +0000 (18:24 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Tue, 15 Jul 2008 18:24:18 +0000 (18:24 +0000)
wx/torrent-list.cc

index b83d3030ba240509eebc6af3b0fc4efdc3504ce7..d74078f4083a5433eb223ddb6619da0350a3936b 100644 (file)
@@ -144,7 +144,7 @@ namespace
         for ( i=0; size>>10; ++i )
             size = size >> 10;
         char buf[512];
-        snprintf( buf, sizeof(buf), "%.*f %s", bestDecimal(size), (double)size, sizestrs[i] );
+        tr_snprintf( buf, sizeof(buf), "%.*f %s", bestDecimal(size), (double)size, sizestrs[i] );
         return toWxStr( buf );
     }
 
@@ -236,12 +236,12 @@ TorrentListCtrl :: RefreshTorrent( tr_torrent   * tor,
         switch( *it )
         {
             case COL_POSITION:
-                snprintf( buf, sizeof(buf), "%d", 666 );
+                tr_snprintf( buf, sizeof(buf), "%d", 666 );
                 xstr = toWxStr( buf );
                 break;
 
             case COL_PERCENT_DONE:
-                snprintf( buf, sizeof(buf), "%d%%", (int)(s->percentDone*100.0) );
+                tr_snprintf( buf, sizeof(buf), "%d%%", (int)(s->percentDone*100.0) );
                 xstr = toWxStr( buf );
                 break;
 
@@ -440,7 +440,7 @@ TorrentListCtrl :: Compare( long item1, long item2, long sortData )
 
         case COL_PEERS:
             /* FIXME: this is all peers, not just leechers 
-            snprintf( buf, sizeof(buf), "%d (%d)", s->peersTotal, s->peersConnected );
+            tr_snprintf( buf, sizeof(buf), "%d (%d)", s->peersTotal, s->peersConnected );
             xstr = toWxStr( buf );*/
             break;
 
@@ -475,7 +475,7 @@ TorrentListCtrl :: Compare( long item1, long item2, long sortData )
             break;
 
         case COL_SEEDS:
-            /*snprintf( buf, sizeof(buf), "%d", s->seeders );
+            /*tr_snprintf( buf, sizeof(buf), "%d", s->seeders );
             xstr = toWxStr( buf );*/
             break;