summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-09-04 03:42:03 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-09-04 03:42:03 +0000
commit10df1b7ad612eba5b72896550ee27a3198a9108e (patch)
tree2f3b7856ef8deeaaf011cd367e4bf0953fd6db22 /sys/arch
parent3983d63075b16a4f1742462451010d19d6ecde56 (diff)
correct sizeof for bzero/bcopy
ok tedu krw fgsch deraadt
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/process_machdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/i386/i386/process_machdep.c b/sys/arch/i386/i386/process_machdep.c
index 79735829391..89a9be57d23 100644
--- a/sys/arch/i386/i386/process_machdep.c
+++ b/sys/arch/i386/i386/process_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process_machdep.c,v 1.11 2003/06/02 23:27:47 millert Exp $ */
+/* $OpenBSD: process_machdep.c,v 1.12 2003/09/04 03:42:02 avsm Exp $ */
/* $NetBSD: process_machdep.c,v 1.22 1996/05/03 19:42:25 christos Exp $ */
/*
@@ -149,9 +149,9 @@ process_read_fpregs(p, regs)
npxsave();
#endif
- bcopy(frame, regs, sizeof(frame));
+ bcopy(frame, regs, sizeof(*frame));
} else
- bzero(regs, sizeof(regs));
+ bzero(regs, sizeof(*regs));
return (0);
}
@@ -239,7 +239,7 @@ process_write_fpregs(p, regs)
#endif
p->p_md.md_flags |= MDP_USEDFPU;
- bcopy(regs, frame, sizeof(frame));
+ bcopy(regs, frame, sizeof(*frame));
return (0);
}