ROMFS: Fix for file names longer than 15 characters. Provided by Lorenz Meier

This commit is contained in:
Gregory Nutt 2013-09-13 11:29:58 -06:00
parent 03413cb676
commit a28c697cfb
2 changed files with 3 additions and 1 deletions

View File

@ -5548,4 +5548,6 @@
compilation in the CDC/ACM driver with regard to remote
wakeup and self-powered capabilites. Provided by Lorenz Meier
(2013-9-13)
* fs/romfs/fs_romfsutil.c: Fix for filenames > 15 characters.
Provided by Lorenz Meier (2013-9-13).

View File

@ -952,7 +952,7 @@ int romfs_datastart(struct romfs_mountpt_s *rm, uint32_t offset,
{
/* Read the sector into memory */
ndx = romfs_devcacheread(rm, offset);
ndx = romfs_devcacheread(rm, offset + namelen);
if (ndx < 0)
{
return ndx;