Merge pull request #4652 from geky/fat-fix-unaligned-ioctl

fatfs: Fix unaligned access in disk_ioctl
pull/4754/head
Martin Kojtal 2017-07-13 16:49:01 +02:00 committed by GitHub
commit 1849370100
1 changed files with 2 additions and 2 deletions

View File

@ -219,8 +219,8 @@ DRESULT disk_ioctl(BYTE pdrv, BYTE cmd, void *buff)
if (_ffs[pdrv] == NULL) {
return RES_NOTRDY;
} else {
DWORD size = _ffs[pdrv]->get_erase_size();
*((DWORD*)buff) = size;
WORD size = _ffs[pdrv]->get_erase_size();
*((WORD*)buff) = size;
return RES_OK;
}
case GET_BLOCK_SIZE: