From d64624912469fc4eccee95e65d7c9e3a3076d699 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 22 Jul 2012 18:58:35 -0400 Subject: [PATCH] fix wrong size for sigjmp_buf signal set array 128 is the size in bytes, not longs. --- include/setjmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1