summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2005-07-31 15:38:12 +0000
committermiod <miod@openbsd.org>2005-07-31 15:38:12 +0000
commit06acb6d5d8a85d296621f79e943e47594ef34f67 (patch)
tree662ab8eafff5100a47300c7f6e4f31134a4c8857
parentFix KDFAULT() in the 68040 & non-68040 compilation case. (diff)
downloadwireguard-openbsd-06acb6d5d8a85d296621f79e943e47594ef34f67.tar.xz
wireguard-openbsd-06acb6d5d8a85d296621f79e943e47594ef34f67.zip
Wrong copyout() size in writeback().
-rw-r--r--sys/arch/mvme68k/mvme68k/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mvme68k/mvme68k/trap.c b/sys/arch/mvme68k/mvme68k/trap.c
index 574ba489d3b..c804974adad 100644
--- a/sys/arch/mvme68k/mvme68k/trap.c
+++ b/sys/arch/mvme68k/mvme68k/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.58 2005/05/01 09:55:49 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.59 2005/07/31 15:38:12 miod Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -789,7 +789,7 @@ writeback(fp, docachepush)
short tmp = wb1d;
err = copyout(&tmp,
- (caddr_t)f->f_wb1a, sizeof(long));
+ (caddr_t)f->f_wb1a, sizeof(short));
}
break;
}