summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-08-08 06:53:14 +0000
committerJim Meyering <jim@meyering.net>2000-08-08 06:53:14 +0000
commitb6bacc5dcf7840ee7f2c187a2d3139522e69c779 (patch)
treee22963b270bbdc3d7d71f71476435ff626b17f8e /src
parent3424a30611a4bfd7a050b5bae74acb47c427b42f (diff)
downloadcoreutils-b6bacc5dcf7840ee7f2c187a2d3139522e69c779.tar.xz
Invoke xalloc_die instead of printing our own message.
Diffstat (limited to 'src')
-rw-r--r--src/cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cp.c b/src/cp.c
index ddfd12299..2408ab044 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