Changeset 5331


Ignore:
Timestamp:
Mar 22, 2008, 6:22:10 PM (14 years ago)
Author:
livings124
Message:

use correct value in sizeof

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r5330 r5331  
    13831383{
    13841384    NSUInteger count = [indexSet count], i = 0, index;
    1385     tr_file_index_t * files = malloc(count * sizeof(int));
     1385    tr_file_index_t * files = malloc(count * sizeof(tr_file_index_t));
    13861386    for (index = [indexSet firstIndex]; index != NSNotFound; index = [indexSet indexGreaterThanIndex: index])
    13871387    {
     
    14001400{
    14011401    NSUInteger count = [indexSet count], i = 0, index;
    1402     tr_file_index_t * files = malloc(count * sizeof(int));
     1402    tr_file_index_t * files = malloc(count * sizeof(tr_file_index_t));
    14031403    for (index = [indexSet firstIndex]; index != NSNotFound; index = [indexSet indexGreaterThanIndex: index])
    14041404    {
Note: See TracChangeset for help on using the changeset viewer.