]> granicus.if.org Git - transmission/commitdiff
(trunk libT) fix typo in error message reported by Rolcol
authorCharles Kerr <charles@transmissionbt.com>
Fri, 10 Dec 2010 03:28:27 +0000 (03:28 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Fri, 10 Dec 2010 03:28:27 +0000 (03:28 +0000)
libtransmission/peer-msgs.c

index ad33e37baeed98bda665c01931c4e5ed8d5cfa5b..449d63bcffa0f803f18a62fcb2a6aee7949795f7 100644 (file)
@@ -1924,7 +1924,7 @@ fillOutputBuffer( tr_peermsgs * msgs, time_t now )
             /* check the piece if it needs checking... */
             if( !err && tr_torrentPieceNeedsCheck( msgs->torrent, req.index ) )
                 if(( err = !tr_torrentCheckPiece( msgs->torrent, req.index )))
-                    tr_torrentSetLocalError( msgs->torrent, _( "Piece #%zu is corrupt!  Please Verify Local Data." ), (size_t)piece );
+                    tr_torrentSetLocalError( msgs->torrent, _( "Piece #%zu is corrupt!  Please Verify Local Data." ), (size_t)req.index );
 
             if( err )
             {