use malloc instead of calloc

This commit is contained in:
Mitchell Livingston 2007-04-28 03:44:09 +00:00
parent c80ff07a06
commit a8a2e03d13
1 changed files with 2 additions and 2 deletions

View File

@ -472,8 +472,8 @@ static void invertSlots( tr_io_t * io, int slot1, int slot2 )
uint8_t * buf1, * buf2;
int piece1, piece2, foo;
buf1 = calloc( inf->pieceSize, 1 );
buf2 = calloc( inf->pieceSize, 1 );
buf1 = malloc( inf->pieceSize );
buf2 = malloc( inf->pieceSize );
readSlot( io, slot1, buf1, &foo );
readSlot( io, slot2, buf2, &foo );