forked from len0rd/rockbox
Fixed dir parsing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@476 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
697485ef6a
commit
40b1f4f0ec
1 changed files with 2 additions and 1 deletions
|
|
@ -48,7 +48,8 @@ DIR* opendir(char* name)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
while ( (part = strtok(name, "/")) ) {
|
||||
for ( part = strtok(name, "/"); part;
|
||||
part = strtok(NULL, "/") ) {
|
||||
int partlen = strlen(part);
|
||||
/* scan dir for name */
|
||||
while (1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue