1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2026-11-03 19:12:42 +03:00

(xstrndup): Invoke xalloc_die instead of printing our own message.

This commit is contained in:
Jim Meyering
2000-08-08 07:11:12 +00:00
parent deffd164df
commit 13587cf0ec

View File

@@ -126,7 +126,7 @@ xstrndup (const char *s, size_t n)
{
char *new = strndup (s, n);
if (new == NULL)
error (EXIT_FAILURE, 0, _("virtual memory exhausted"));
xalloc_die ();
return new;
}