Changeset 296
- Timestamp:
- Jun 8, 2006, 6:16:39 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/save_torrent_files/libtransmission/utils.c
r293 r296 97 97 int tr_mkdir( char * path ) 98 98 { 99 char * p ;99 char * p, * pp; 100 100 struct stat sb; 101 101 … … 103 103 while( '/' == *p ) 104 104 p++; 105 while( ( p = strchr( p, '/' ) ) ) 105 pp = p; 106 while( ( p = strchr( pp, '/' ) ) || ( p = strchr( pp, '\0' ) ) ) 106 107 { 107 108 *p = '\0'; … … 125 126 } 126 127 *p = '/'; 128 pp = p; 127 129 p++; 128 130 }
Note: See TracChangeset
for help on using the changeset viewer.