diff options
Diffstat (limited to 'lib/libstand/splitfs.c')
-rw-r--r-- | lib/libstand/splitfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/splitfs.c b/lib/libstand/splitfs.c index 35593ad..9adcdec 100644 --- a/lib/libstand/splitfs.c +++ b/lib/libstand/splitfs.c @@ -207,7 +207,7 @@ splitfs_read(struct open_file *f, void *buf, size_t size, size_t *resid) sf->tot_pos += nread; sf->file_pos += nread; totread += nread; - buf += nread; + buf = (char *)buf + nread; if (totread < size) { /* EOF */ if (sf->curfile == (sf->filesc - 1)) /* Last slice */ |