diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-09-13 11:29:58 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-09-13 11:29:58 -0600 |
commit | e5222a9685f26a250a83a9931528d45c588e2163 (patch) | |
tree | f87a02a0fec0d356c628c39a624b66dc42896073 | |
parent | 307cc945b57ad34b631c6e8becc81d63729ecba0 (diff) | |
download | nuttx-e5222a9685f26a250a83a9931528d45c588e2163.tar.gz nuttx-e5222a9685f26a250a83a9931528d45c588e2163.tar.bz2 nuttx-e5222a9685f26a250a83a9931528d45c588e2163.zip |
ROMFS: Fix for file names longer than 15 characters. Provided by Lorenz Meier
-rw-r--r-- | nuttx/ChangeLog | 2 | ||||
-rw-r--r-- | nuttx/fs/romfs/fs_romfsutil.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index e992e4f78..0088adb49 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -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). diff --git a/nuttx/fs/romfs/fs_romfsutil.c b/nuttx/fs/romfs/fs_romfsutil.c index 36de75ed5..95698bb3b 100644 --- a/nuttx/fs/romfs/fs_romfsutil.c +++ b/nuttx/fs/romfs/fs_romfsutil.c @@ -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; |