From 249225774c4509ee209e956eac38db9ab65fe743 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 29 Jan 2001 02:05:55 +0000 Subject: [PATCH] no calls to err with NULL git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9558 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/rcp/rcp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/appl/rcp/rcp.c b/appl/rcp/rcp.c index 01250201e..49da9f4b9 100644 --- a/appl/rcp/rcp.c +++ b/appl/rcp/rcp.c @@ -185,7 +185,7 @@ toremote(targ, argc, argv) strlen(src) + (tuser ? strlen(tuser) : 0) + strlen(thost) + strlen(targ) + CMDNEEDS + 20; if (!(bp = malloc(len))) - err(1, NULL); + err(1, "malloc"); if (host) { *host++ = 0; suser = argv[i]; @@ -210,7 +210,7 @@ toremote(targ, argc, argv) if (remin == -1) { len = strlen(targ) + CMDNEEDS + 20; if (!(bp = malloc(len))) - err(1, NULL); + err(1, "malloc"); (void)snprintf(bp, len, "%s -t %s", cmd, targ); host = thost; @@ -240,7 +240,7 @@ tolocal(argc, argv) len = strlen(_PATH_CP) + strlen(argv[i]) + strlen(argv[argc - 1]) + 20; if (!(bp = malloc(len))) - err(1, NULL); + err(1, "malloc"); (void)snprintf(bp, len, "exec %s%s%s %s %s", _PATH_CP, iamrecursive ? " -PR" : "", pflag ? " -p" : "", argv[i], argv[argc - 1]); @@ -265,7 +265,7 @@ tolocal(argc, argv) } len = strlen(src) + CMDNEEDS + 20; if ((bp = malloc(len)) == NULL) - err(1, NULL); + err(1, "malloc"); (void)snprintf(bp, len, "%s -f %s", cmd, src); if (do_cmd(host, suser, bp, &remin, &remout) < 0) { (void)free(bp);