Ignore:
Timestamp:
Jun 7, 2010, 2:25:31 PM (11 years ago)
Author:
charles
Message:

(trunk) #3262 "problems with '.' as the first character in a .torrent's filename" -- fixed in trunk for 2.00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r10634 r10736  
    340340            while( ( dirp = readdir( dirh ) ) )
    341341            {
    342                 if( strcmp( dirp->d_name,
    343                             "." ) && strcmp( dirp->d_name, ".." ) )
     342                const char * name = dirp->d_name;
     343                if( name && strcmp( name, "." ) && strcmp( name, ".." ) )
    344344                {
    345                     char * o = tr_buildPath( oldDir, dirp->d_name, NULL );
    346                     char * n = tr_buildPath( newDir, dirp->d_name, NULL );
     345                    char * o = tr_buildPath( oldDir, name, NULL );
     346                    char * n = tr_buildPath( newDir, name, NULL );
    347347                    rename( o, n );
    348348                    ++count;
Note: See TracChangeset for help on using the changeset viewer.