kernel/checkpoint: Fix wrong sizeof (p_sigacts is a pointer).
authorSascha Wildner <saw@online.de>
Tue, 16 Apr 2013 17:13:19 +0000 (19:13 +0200)
committerSascha Wildner <saw@online.de>
Tue, 16 Apr 2013 17:13:19 +0000 (19:13 +0200)
sys/kern/kern_checkpoint.c

index 3aa33d8..eec5778 100644 (file)
@@ -463,7 +463,7 @@ elf_getsigs(struct lwp *lp, struct file *fp)
                error = EINVAL;
                goto done;
        }
-       bcopy(&csi->csi_sigacts, p->p_sigacts, sizeof(p->p_sigacts));
+       bcopy(&csi->csi_sigacts, p->p_sigacts, sizeof(struct sigacts));
        bcopy(&csi->csi_itimerval, &p->p_realtimer, sizeof(struct itimerval));
        SIG_CANTMASK(csi->csi_sigmask);
        /* XXX lwp handle more than one lwp */