Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Fix bug in siginfo handling introduced in revision ...



details:   https://anonhg.NetBSD.org/src/rev/62483ecd09f4
branches:  trunk
changeset: 570733:62483ecd09f4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Oct 26 06:58:05 2004 +0000

description:
Fix bug in siginfo handling introduced in revision 1.93

diffstat:

 sys/kern/kern_ktrace.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 415553dde663 -r 62483ecd09f4 sys/kern/kern_ktrace.c
--- a/sys/kern/kern_ktrace.c    Tue Oct 26 06:54:53 2004 +0000
+++ b/sys/kern/kern_ktrace.c    Tue Oct 26 06:58:05 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_ktrace.c,v 1.94 2004/10/01 16:30:53 yamt Exp $    */
+/*     $NetBSD: kern_ktrace.c,v 1.95 2004/10/26 06:58:05 skrll Exp $   */
 
 /*
  * Copyright (c) 1989, 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_ktrace.c,v 1.94 2004/10/01 16:30:53 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_ktrace.c,v 1.95 2004/10/26 06:58:05 skrll Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_compat_mach.h"
@@ -588,7 +588,7 @@
                kbuf->kp.code = KSI_TRAPCODE(ksi);
                (void)memset(&kbuf->si, 0, sizeof(kbuf->si));
                kbuf->si._info = ksi->ksi_info;
-               kth->ktr_len = sizeof(kbuf);
+               kth->ktr_len = sizeof(*kbuf);
        } else {
                kbuf->kp.code = 0;
                kth->ktr_len = sizeof(struct ktr_psig);



Home | Main Index | Thread Index | Old Index