diff options
Diffstat (limited to 'string/test-string.h')
-rw-r--r-- | string/test-string.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/string/test-string.h b/string/test-string.h index febde61040..78b66efe36 100644 --- a/string/test-string.h +++ b/string/test-string.h @@ -18,6 +18,7 @@ <https://www.gnu.org/licenses/>. */ #include <sys/cdefs.h> +#include <support/support.h> typedef struct { @@ -146,8 +147,8 @@ static impl_t *impl_array; skip = impl; \ else \ impl_count++; \ - a = impl_array = malloc ((impl_count + func_count) * \ - sizeof (impl_t)); \ + a = impl_array = xmalloc ((impl_count + func_count) * \ + sizeof (impl_t)); \ for (impl = __start_impls; impl < __stop_impls; ++impl) \ if (impl != skip) \ *a++ = *impl; \ |