aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-03-25 14:59:40 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-03-25 14:59:40 +0000
commiteca81753c8acb5b99425c7ae8930d0f39d58a7a6 (patch)
tree5945a129bc8d6964281cf70567d0dfa5f60928b0 /os/hal
parentc44880635c6c6f8b7b026c79ae5ec1e49e38541c (diff)
downloadChibiOS-eca81753c8acb5b99425c7ae8930d0f39d58a7a6.tar.gz
ChibiOS-eca81753c8acb5b99425c7ae8930d0f39d58a7a6.tar.bz2
ChibiOS-eca81753c8acb5b99425c7ae8930d0f39d58a7a6.zip
Fixed bug #931.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11852 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/lib/complex/mfs/mfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/lib/complex/mfs/mfs.c b/os/hal/lib/complex/mfs/mfs.c
index 96112ac11..ba68fb19d 100644
--- a/os/hal/lib/complex/mfs/mfs.c
+++ b/os/hal/lib/complex/mfs/mfs.c
@@ -950,7 +950,7 @@ mfs_error_t mfsReadRecord(MFSDriver *mfsp, mfs_id_t id,
/* Header read from flash.*/
RET_ON_ERROR(mfs_flash_read(mfsp,
mfsp->descriptors[id - 1U].offset,
- *np,
+ sizeof (mfs_data_header_t),
mfsp->buffer.data8));
/* Data read from flash.*/