diff options
author | Roland McGrath <roland@gnu.org> | 1999-06-04 21:39:23 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-06-04 21:39:23 +0000 |
commit | d23ee15ac680c246891b74103d8cd991246dfd1b (patch) | |
tree | 42ac720cfa456564c1731677a82943fe27ba1835 | |
parent | 73869bfcb60877d469297ba69b08b61682e477ac (diff) |
1999-06-04 Roland McGrath <roland@baalperazim.frob.com>
* exec.c (map): Fix mapping calls to use F->__offset consistently
instead of F->__target.
-rw-r--r-- | exec/exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exec/exec.c b/exec/exec.c index 6e83108f..9beece9d 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -482,7 +482,7 @@ map (struct execdata *e, off_t posn, size_t len) /* Map the data from the file. */ if (vm_map (mach_task_self (), (vm_address_t *) &f->__buffer, f->__bufsize, 0, 1, - e->filemap, f->__target, 1, VM_PROT_READ, VM_PROT_READ, + e->filemap, f->__offset, 1, VM_PROT_READ, VM_PROT_READ, VM_INHERIT_NONE)) { errno = e->error = EIO; @@ -494,7 +494,7 @@ map (struct execdata *e, off_t posn, size_t len) e->cntl->accessed = 1; if (f->__offset + f->__bufsize > size) - f->__get_limit = f->__buffer + (size - f->__target); + f->__get_limit = f->__buffer + (size - f->__offset); else f->__get_limit = f->__buffer + f->__bufsize; } |