More NXFFS bugfixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3562 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
9bf97a2cd3
commit
9721078fdd
@ -782,7 +782,7 @@ static inline int nxffs_packblock(FAR struct nxffs_volume_s *volume,
|
||||
/* Transfer the smaller of the two amounts data */
|
||||
|
||||
uint16_t xfrlen = MIN(srclen, destlen);
|
||||
nxffs_ioseek(volume, pack->src.blkoffset + pack->src.blkpos);
|
||||
nxffs_ioseek(volume, pack->src.blkoffset + SIZEOF_NXFFS_DATA_HDR + pack->src.blkpos);
|
||||
memcpy(&pack->iobuffer[pack->iooffset], &volume->cache[volume->iooffset], xfrlen);
|
||||
|
||||
/* Increment counts and offset for this data transfer */
|
||||
|
Loading…
Reference in New Issue
Block a user