summaryrefslogtreecommitdiff
path: root/liblogfs/read.c
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2011-12-15 16:40:16 +0000
committerforsyth <forsyth@vitanuova.com>2011-12-15 16:40:16 +0000
commit28942ead413418b56c5be78e8c4c400881fba72e (patch)
treecd646dce007974acc02e535a2c9ff800ada2b684 /liblogfs/read.c
parent1eacf117f57c983da30e88f232fab9db7b1e300d (diff)
20111215-1640
Diffstat (limited to 'liblogfs/read.c')
-rw-r--r--liblogfs/read.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/liblogfs/read.c b/liblogfs/read.c
index e97a934f..b47f7825 100644
--- a/liblogfs/read.c
+++ b/liblogfs/read.c
@@ -1,4 +1,4 @@
-#include "lib9.h"
+#include "logfsos.h"
#include "logfs.h"
#include "local.h"
#include "fcall.h"
@@ -73,7 +73,7 @@ drsread(DirReadState *drs, uchar *buf, u32int buflen, u32int *rcount)
uint len = GBIT16(p) + BIT16SZ;
if(len > buflen)
break;
- memcpy(buf, p, len);
+ memmove(buf, p, len);
drs->lastoffset += len;
*rcount += len;
buf += len;
@@ -146,7 +146,7 @@ reader(void *magic, u32int baseoffset, u32int limitoffset, Extent *e, u32int ext
/*
* it hasn't made it to disk yet
*/
- memcpy(s->buf + baseoffset, seg->pagebuf + offset, limitoffset - baseoffset);
+ memmove(s->buf + baseoffset, seg->pagebuf + offset, limitoffset - baseoffset);
goto done;
}
if(seq < seg->unsweptblockindex) {