mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 17:18:28 +08:00
ROMFS: Fix for file names longer than 15 characters. Provided by Lorenz Meier
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user