diff options
Diffstat (limited to 'com32/lib/sys/fileread.c')
-rw-r--r-- | com32/lib/sys/fileread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/lib/sys/fileread.c b/com32/lib/sys/fileread.c index 54ff7115..f1fd3eb1 100644 --- a/com32/lib/sys/fileread.c +++ b/com32/lib/sys/fileread.c @@ -58,12 +58,12 @@ int __file_get_block(struct file_info *fp) fp->i.filedes = oreg.esi.w[0]; fp->i.nbytes = oreg.ecx.l; fp->i.datap = fp->i.buf; - memcpy(fp->i.buf, __com32.cs_bounce, fp->i.nbytes); + memcpy(fp->i.datap, __com32.cs_bounce, fp->i.nbytes); return 0; } -ssize_t __file_read(struct file_info * fp, void *buf, size_t count) +ssize_t __file_read(struct file_info *fp, void *buf, size_t count) { char *bufp = buf; ssize_t n = 0; |