summaryrefslogtreecommitdiff
path: root/nuttx/fs
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-04-22 08:01:43 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-04-22 08:01:43 -0600
commit11278c31a01b6fdfb09e2a3109a20d38ef793055 (patch)
treec0f670c168d61c819c5d888eb6726121068e6f27 /nuttx/fs
parent58d19e46e06d8b0f06c997f001b159682d76672f (diff)
downloadpx4-nuttx-11278c31a01b6fdfb09e2a3109a20d38ef793055.tar.gz
px4-nuttx-11278c31a01b6fdfb09e2a3109a20d38ef793055.tar.bz2
px4-nuttx-11278c31a01b6fdfb09e2a3109a20d38ef793055.zip
Fixes to strchr, mkfats, and NxWidgets from Petteri Aimonen
Diffstat (limited to 'nuttx/fs')
-rw-r--r--nuttx/fs/fat/fs_writefat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/fat/fs_writefat.c b/nuttx/fs/fat/fs_writefat.c
index 564be5b50..1d58db5f2 100644
--- a/nuttx/fs/fat/fs_writefat.c
+++ b/nuttx/fs/fat/fs_writefat.c
@@ -212,7 +212,7 @@ static inline void mkfatfs_initmbr(FAR struct fat_format_s *fmt,
/* Boot code may be placed in the remainder of the sector */
- memcpy(&var->fv_sect[BS16_BOOTCODE], var->fv_bootcode, var->fv_bootcodesize);
+ memcpy(&var->fv_sect[BS32_BOOTCODE], var->fv_bootcode, var->fv_bootcodesize);
}
/* The magic bytes at the end of the MBR are common to FAT12/16/32 */