From: Rich Felker Date: Sun, 22 Jul 2012 22:58:35 +0000 (-0400) Subject: fix wrong size for sigjmp_buf signal set array X-Git-Tag: v0.9.3~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d64624912469fc4eccee95e65d7c9e3a3076d699;p=musl fix wrong size for sigjmp_buf signal set array 128 is the size in bytes, not longs. --- diff --git a/include/setjmp.h b/include/setjmp.h index 28ff92e4..7dc72767 100644 --- a/include/setjmp.h +++ b/include/setjmp.h @@ -14,7 +14,7 @@ extern "C" { typedef struct { jmp_buf __jb; unsigned long __fl; - unsigned long __ss[128]; + unsigned long __ss[128/sizeof(long)]; } sigjmp_buf[1]; int sigsetjmp (sigjmp_buf, int); void siglongjmp (sigjmp_buf, int);