mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-05-26 20:26:31 +02:00
(xstrndup): Invoke xalloc_die instead of printing our own message.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user