Changeset 5034
- Timestamp:
- Feb 14, 2008, 1:12:00 AM (14 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/metainfo.c
r5031 r5034 201 201 if( NULL != val && TYPE_STR == val->type ) 202 202 { 203 strlcat_utf8( inf->comment, val->val.s.s, sizeof( inf->comment ), 0 ); 203 char buf[4096]; 204 memset( buf, 0, sizeof( buf ) ); 205 strlcat_utf8( buf, val->val.s.s, sizeof( buf ), 0 ); 206 tr_free( inf->comment ); 207 inf->comment = tr_strdup( buf ); 204 208 } 205 209 … … 208 212 if( NULL != val && TYPE_STR == val->type ) 209 213 { 210 strlcat_utf8( inf->creator, val->val.s.s, sizeof( inf->creator ), 0 ); 214 char buf[4096]; 215 memset( buf, 0, sizeof( buf ) ); 216 strlcat_utf8( buf, val->val.s.s, sizeof( buf ), 0 ); 217 tr_free( inf->creator ); 218 inf->creator = tr_strdup( buf ); 211 219 } 212 220 … … 311 319 tr_free( inf->pieces ); 312 320 tr_free( inf->files ); 321 tr_free( inf->comment ); 322 tr_free( inf->creator ); 313 323 tr_free( inf->primaryAddress ); 314 324 -
trunk/libtransmission/transmission.h
r5031 r5034 646 646 647 647 /* Torrent info */ 648 char comment[MAX_PATH_LENGTH];649 char creator[MAX_PATH_LENGTH];648 char * comment; 649 char * creator; 650 650 int dateCreated; 651 651
Note: See TracChangeset
for help on using the changeset viewer.