Changeset 296


Ignore:
Timestamp:
Jun 8, 2006, 6:16:39 AM (16 years ago)
Author:
joshe
Message:

Remember when I said I fixed tr_mkdir() before and made a comment about testing?
I didn't really test that. Hopefully this will actually fix it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/save_torrent_files/libtransmission/utils.c

    r293 r296  
    9797int tr_mkdir( char * path )
    9898{
    99     char      * p;
     99    char      * p, * pp;
    100100    struct stat sb;
    101101
     
    103103    while( '/' == *p )
    104104      p++;
    105     while( ( p = strchr( p, '/' ) ) )
     105    pp = p;
     106    while( ( p = strchr( pp, '/' ) ) || ( p = strchr( pp, '\0' ) ) )
    106107    {
    107108        *p = '\0';
     
    125126        }
    126127        *p = '/';
     128        pp = p;
    127129        p++;
    128130    }
Note: See TracChangeset for help on using the changeset viewer.