(xstrndup): Use message that's the same as the one
authorJim Meyering <jim@meyering.net>
Sat, 21 Sep 1996 15:23:35 +0000 (15:23 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 21 Sep 1996 15:23:35 +0000 (15:23 +0000)
you get from e.g., xmalloc.  Reported by Santiago Vila.

src/dircolors.c

index a52bd13..b83cf12 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, _("Memory exhausted"));
+    error (EXIT_FAILURE, 0, _("virtual memory exhausted"));
   return new;
 }