From 6bffcc2335f584e45f0b704986413f42391c7057 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Thu, 6 Dec 2012 22:48:46 +0100 Subject: [PATCH] fix sigorset/sigandset: _NSIG/8 is the size in bytes --- src/signal/sigandset.c | 2 +- src/signal/sigorset.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/signal/sigandset.c b/src/signal/sigandset.c index f9204c49..e0c6f486 100644 --- a/src/signal/sigandset.c +++ b/src/signal/sigandset.c @@ -1,7 +1,7 @@ #define _GNU_SOURCE #include -#define SST_SIZE (_NSIG/8) +#define SST_SIZE (_NSIG/8/sizeof(long)) int sigandset(sigset_t *dest, sigset_t *left, sigset_t *right) { diff --git a/src/signal/sigorset.c b/src/signal/sigorset.c index 5460224b..df1b1b17 100644 --- a/src/signal/sigorset.c +++ b/src/signal/sigorset.c @@ -1,7 +1,7 @@ #define _GNU_SOURCE #include -#define SST_SIZE (_NSIG/8) +#define SST_SIZE (_NSIG/8/sizeof(long)) int sigorset(sigset_t *dest, sigset_t *left, sigset_t *right) { -- 2.25.1