Browse Source

fix wrong size for sigjmp_buf signal set array

128 is the size in bytes, not longs.
Rich Felker 12 years ago
parent
commit
d646249124
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/setjmp.h

+ 1 - 1
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);