Ignore:
Timestamp:
Jun 7, 2008, 9:26:41 PM (13 years ago)
Author:
charles
Message:

#800 initial support for GetRight?-style fetching of data through http and ftp servers specified in the .torrent's "url-list" tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/ptrarray.c

    r5389 r6073  
    5858
    5959    out = tr_new( tr_ptrArray, 1 );
    60     out->n_items = in->n_items;
    61     out->n_alloc = in->n_items;
    62     out->items = tr_new( void*, out->n_alloc );
    63     memcpy( out->items, in->items, out->n_items * sizeof(void*) );
     60    out->n_items = out->n_alloc = in->n_items;
     61    out->items = tr_memdup( in->items, out->n_items * sizeof(void*) );
    6462
    6563    return out;
     
    9694{
    9795    *size = t->n_items;
     96    return t->items;
     97}
     98
     99void**
     100tr_ptrArrayBase( tr_ptrArray * t )
     101{
    98102    return t->items;
    99103}
Note: See TracChangeset for help on using the changeset viewer.