diff --git a/fs/romfs/fs_romfsutil.c b/fs/romfs/fs_romfsutil.c index 95698bb3b45..36de75ed580 100644 --- a/fs/romfs/fs_romfsutil.c +++ b/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 + namelen); + ndx = romfs_devcacheread(rm, offset); if (ndx < 0) { return ndx;