summaryrefslogtreecommitdiffstats
path: root/lib/libstand/ext2fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libstand/ext2fs.c')
-rw-r--r--lib/libstand/ext2fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/ext2fs.c b/lib/libstand/ext2fs.c
index 153f163..1bd78e2 100644
--- a/lib/libstand/ext2fs.c
+++ b/lib/libstand/ext2fs.c
@@ -834,7 +834,7 @@ ext2fs_read(struct open_file *f, void *addr, size_t size, size_t *resid)
bcopy(buf, addr, csize);
fp->f_seekp += csize;
- addr += csize;
+ addr = (char *)addr + csize;
size -= csize;
}
if (resid)
OpenPOWER on IntegriCloud