diff options
Diffstat (limited to 'lib/libstand/dosfs.c')
-rw-r--r-- | lib/libstand/dosfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/dosfs.c b/lib/libstand/dosfs.c index 41547c8..161d330 100644 --- a/lib/libstand/dosfs.c +++ b/lib/libstand/dosfs.c @@ -277,7 +277,7 @@ dos_read(struct open_file *fd, void *buf, size_t nbyte, size_t *resid) f->offset += n; f->c = c; off = 0; - buf += n; + buf = (char *)buf + n; cnt -= n; } out: |