Browse Source

fix wrong size for sigjmp_buf signal set array

128 is the size in bytes, not longs.
Rich Felker 12 năm trước cách đây
mục cha
commit
d646249124
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);