diff options
author | art <> | 2002-01-04 12:50:36 +0000 |
---|---|---|
committer | art <> | 2002-01-04 12:50:36 +0000 |
commit | d41fda10f86290cbfc595d63577abd326f4e031d (patch) | |
tree | 30ed4f451773dbc8d07520ab4f2e7401b37f3b81 /src | |
parent | cb38e5ac38d7042b70d5da2d8b3e1d08b2723e63 (diff) | |
download | openbsd-d41fda10f86290cbfc595d63577abd326f4e031d.tar.gz openbsd-d41fda10f86290cbfc595d63577abd326f4e031d.tar.bz2 openbsd-d41fda10f86290cbfc595d63577abd326f4e031d.zip |
A bug in the malloc test uncoveres a bug in longjmp on alpha.
How ironic.
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libc/malloc/malloc0test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libc/malloc/malloc0test.c b/src/regress/lib/libc/malloc/malloc0test.c index d226af5a28..99eef67196 100644 --- a/src/regress/lib/libc/malloc/malloc0test.c +++ b/src/regress/lib/libc/malloc/malloc0test.c | |||
@@ -17,11 +17,11 @@ void | |||
17 | catch(int signo) | 17 | catch(int signo) |
18 | { | 18 | { |
19 | got++; | 19 | got++; |
20 | longjmp(jmp, 0); | 20 | longjmp(jmp, 1); |
21 | } | 21 | } |
22 | 22 | ||
23 | int | 23 | int |
24 | test(caddr_t p, int size) | 24 | test(char *p, int size) |
25 | { | 25 | { |
26 | signal(SIGSEGV, catch); | 26 | signal(SIGSEGV, catch); |
27 | got = 0; | 27 | got = 0; |