Changeset 8720
- Timestamp:
- Jun 20, 2009, 12:39:30 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/makemeta.c
r8588 r8720 297 297 { 298 298 const char * pch, *prev; 299 const size_t topLen = strlen( topFile ) + 1; /* +1 for '/' */299 size_t topLen; 300 300 int n; 301 301 … … 303 303 tr_bencInitInt( uninitialized_length, file->size ); 304 304 305 /* the path list */ 305 /* how much of file->filename to walk past */ 306 topLen = strlen( topFile ); 307 if( topLen>0 && topFile[topLen-1]!=TR_PATH_DELIMITER ) 308 ++topLen; /* +1 for the path delimiter */ 309 310 /* build the path list */ 306 311 n = 1; 307 312 for( pch = file->filename + topLen; *pch; ++pch )
Note: See TracChangeset
for help on using the changeset viewer.