diff options
Diffstat (limited to 'src/libstddjb/sig_restoreto.c')
-rw-r--r-- | src/libstddjb/sig_restoreto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstddjb/sig_restoreto.c b/src/libstddjb/sig_restoreto.c index 580ba32..1a9250e 100644 --- a/src/libstddjb/sig_restoreto.c +++ b/src/libstddjb/sig_restoreto.c @@ -3,12 +3,13 @@ /* MT-unsafe */ #include <signal.h> + #include <skalibs/sig.h> void sig_restoreto (sigset_t const *set, unsigned int n) { unsigned int i = 1 ; - for (; i <= n ; i++) + for (; i < n ; i++) { int h = sigismember(set, i) ; if (h < 0) continue ; |