1
0
Fork 0
forked from len0rd/rockbox

Let the FAT namecheck also look for trailing spaces, fixes FS #8560.

Only call the dircache rename function if the actual rename was ok.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16241 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Peter D'Hoye 2008-02-07 22:15:13 +00:00
parent 1b39f2e117
commit c04f497670
2 changed files with 8 additions and 3 deletions

View file

@ -1202,6 +1202,10 @@ static int fat_checkname(const unsigned char* newname)
return -1;
newname++;
}
/* check trailing space(s) */
if(*(--newname) == ' ')
return -1;
return 0;
}