Explorar o código

fix wrong size for sigjmp_buf signal set array

128 is the size in bytes, not longs.
Rich Felker %!s(int64=12) %!d(string=hai) anos
pai
achega
d646249124
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);