diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-08-29 18:53:55 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-08-29 18:53:55 +0300 |
commit | 0e1761697d8ed24b07cf23035f5dd01d09056e3a (patch) | |
tree | 0bfa58691f81e87f3098d736bc0409c4dd5fc40c /support/malloc/dynarray_at_failure.c | |
parent | 6696453c1a733436cbb9ca41c7c75eeb4e0b428a (diff) | |
download | egawk-0e1761697d8ed24b07cf23035f5dd01d09056e3a.tar.gz egawk-0e1761697d8ed24b07cf23035f5dd01d09056e3a.tar.bz2 egawk-0e1761697d8ed24b07cf23035f5dd01d09056e3a.zip |
Sync support with GNULIB updates.
Diffstat (limited to 'support/malloc/dynarray_at_failure.c')
-rw-r--r-- | support/malloc/dynarray_at_failure.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/support/malloc/dynarray_at_failure.c b/support/malloc/dynarray_at_failure.c index 4f840db7..8dd68507 100644 --- a/support/malloc/dynarray_at_failure.c +++ b/support/malloc/dynarray_at_failure.c @@ -18,11 +18,11 @@ #ifndef _LIBC # include <libc-config.h> +# include <stdlib.h> #endif #include <dynarray.h> #include <stdio.h> -#include <stdlib.h> void __libc_dynarray_at_failure (size_t size, size_t index) @@ -32,6 +32,7 @@ __libc_dynarray_at_failure (size_t size, size_t index) __snprintf (buf, sizeof (buf), "Fatal glibc error: " "array index %zu not less than array length %zu\n", index, size); + __libc_fatal (buf); #else abort (); #endif |