aboutsummaryrefslogtreecommitdiffstats
path: root/support/malloc/dynarray_at_failure.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-08-29 18:53:55 +0300
committerArnold D. Robbins <arnold@skeeve.com>2021-08-29 18:53:55 +0300
commit0e1761697d8ed24b07cf23035f5dd01d09056e3a (patch)
tree0bfa58691f81e87f3098d736bc0409c4dd5fc40c /support/malloc/dynarray_at_failure.c
parent6696453c1a733436cbb9ca41c7c75eeb4e0b428a (diff)
downloadegawk-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.c3
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