From: Jim Meyering Date: Tue, 8 Aug 2000 06:53:14 +0000 (+0000) Subject: Invoke xalloc_die instead of printing our own message. X-Git-Tag: FILEUTILS-4_0y~82 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=b6bacc5dcf7840ee7f2c187a2d3139522e69c779;p=thirdparty%2Fcoreutils.git Invoke xalloc_die instead of printing our own message. --- diff --git a/src/cp.c b/src/cp.c index ddfd12299e..2408ab0449 100644 --- a/src/cp.c +++ b/src/cp.c @@ -528,7 +528,7 @@ do_copy (int n_files, char **file, const char *target_directory, /* Append all of `arg' to `dest'. */ dst_path = path_concat (dest, arg, &arg_in_concat); if (dst_path == NULL) - error (1, 0, _("virtual memory exhausted")); + xalloc_die (); /* For --parents, we have to make sure that the directory dir_name (dst_path) exists. We may have to create a few @@ -615,7 +615,7 @@ do_copy (int n_files, char **file, const char *target_directory, x = &x_tmp; if (new_dest == NULL) - error (1, 0, _("virtual memory exhausted")); + xalloc_die (); } /* When the destination is specified with a trailing slash and the