1
0
Fork 0
forked from len0rd/rockbox

Added note about strtok() not being thread safe

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@478 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-05-06 15:05:17 +00:00
parent 27a153e421
commit 6904d1ad5c

View file

@ -48,6 +48,7 @@ DIR* opendir(char* name)
return NULL; return NULL;
} }
/* fixme: strtok() is not thread safe, and fat_getnext() calls yield() */
for ( part = strtok(name, "/"); part; for ( part = strtok(name, "/"); part;
part = strtok(NULL, "/") ) { part = strtok(NULL, "/") ) {
int partlen = strlen(part); int partlen = strlen(part);