Skip to content
Snippets Groups Projects
Commit 9721078f authored by patacongo's avatar patacongo
Browse files

More NXFFS bugfixes

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3562 42af7a65-404d-4744-a932-0658087f49c3
parent 9bf97a2c
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment