ROMFS: Fix for file names longer than 15 characters. Provided by Lorenz Meier
This commit is contained in:
parent
03413cb676
commit
a28c697cfb
@ -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).
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user