]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(xstrndup): Invoke xalloc_die instead of printing our own message.
authorJim Meyering <jim@meyering.net>
Tue, 8 Aug 2000 07:11:12 +0000 (07:11 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 8 Aug 2000 07:11:12 +0000 (07:11 +0000)
src/dircolors.c

index 2351e61b2abca5c0d0617c5ea30146452d7ee904..38e1c5071e73c7422c8f91026e743a11f0502f58 100644 (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;
 }