diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-02-16 20:19:35 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-02-16 20:19:35 +0000 |
commit | d6abdce959e1bf74e6ad8f5c0edcd40461dc1877 (patch) | |
tree | c49bd2aa50a08a75b2b7781b8d519fd565dd80c9 /libc/signal | |
parent | d521a0323b6c2549c8c518e490e42cc3b2c6c970 (diff) |
Use sizeof(sa_mask) instaed of sizeof(sigset_t) since sa_mask is
not always a sigset_t... Fix from Geoffrey Espin.
Diffstat (limited to 'libc/signal')
-rw-r--r-- | libc/signal/sigaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/signal/sigaction.c b/libc/signal/sigaction.c index 80cd68798..1abb340a3 100644 --- a/libc/signal/sigaction.c +++ b/libc/signal/sigaction.c @@ -126,7 +126,7 @@ int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oa if (act) { kact.k_sa_handler = act->sa_handler; - memcpy (&kact.sa_mask, &act->sa_mask, sizeof (sigset_t)); + memcpy (&kact.sa_mask, &act->sa_mask, sizeof (kact.sa_mask)); kact.sa_flags = act->sa_flags; # ifdef HAVE_SA_RESTORER kact.sa_restorer = act->sa_restorer; @@ -140,7 +140,7 @@ int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oa if (oact && result >= 0) { oact->sa_handler = koact.k_sa_handler; - memcpy (&oact->sa_mask, &koact.sa_mask, sizeof (sigset_t)); + memcpy (&oact->sa_mask, &koact.sa_mask, sizeof (oact->sa_mask)); oact->sa_flags = koact.sa_flags; # ifdef HAVE_SA_RESTORER oact->sa_restorer = koact.sa_restorer; |