From 9721078fddaf23b4296414495280fda7a7a91e48 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 4 May 2011 22:47:34 +0000 Subject: [PATCH] More NXFFS bugfixes git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3562 42af7a65-404d-4744-a932-0658087f49c3 --- fs/nxffs/nxffs_pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nxffs/nxffs_pack.c b/fs/nxffs/nxffs_pack.c index ea40e1d70a..57fa11e767 100644 --- a/fs/nxffs/nxffs_pack.c +++ b/fs/nxffs/nxffs_pack.c @@ -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 */