summaryrefslogtreecommitdiff
path: root/usr.bin/fstat
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2001-02-15 22:42:44 +0000
committerIan Dowse <iedowse@FreeBSD.org>2001-02-15 22:42:44 +0000
commitb654e1067b05d62cfa85dc0ab691e086f9bf23a4 (patch)
tree4ebdba85b8fee6e7a6099a6e8121c43420c9da07 /usr.bin/fstat
parent7c45cb9bca891b1b287a203f4a4259268394a8dc (diff)
Notes
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r--usr.bin/fstat/fstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c
index 427611dffe26..49bc0801f02f 100644
--- a/usr.bin/fstat/fstat.c
+++ b/usr.bin/fstat/fstat.c
@@ -393,8 +393,8 @@ dommap(kp)
}
map = &vmspace.vm_map;
- for (entryp = map->header.next; entryp != &vmspace.vm_map.header;
- entryp = entry.next) {
+ for (entryp = map->header.next;
+ entryp != &kp->ki_vmspace->vm_map.header; entryp = entry.next) {
if (!KVM_READ(entryp, &entry, sizeof(entry))) {
dprintf(stderr,
"can't read vm_map_entry at %p for pid %d\n",