diff options
author | Matthew Dillon <dillon@FreeBSD.org> | 2002-07-10 20:44:55 +0000 |
---|---|---|
committer | Matthew Dillon <dillon@FreeBSD.org> | 2002-07-10 20:44:55 +0000 |
commit | 5ad9e45f961c99b6fe592a65c0f534b46152a820 (patch) | |
tree | 532d4c0413a4d4d483da0b70f7b88f1fad49506d /bin/rcp | |
parent | 3951e2ab2811c3930d918b43c4c801c9143c258f (diff) | |
download | src-5ad9e45f961c99b6fe592a65c0f534b46152a820.tar.gz src-5ad9e45f961c99b6fe592a65c0f534b46152a820.zip |
Notes
Diffstat (limited to 'bin/rcp')
-rw-r--r-- | bin/rcp/rcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c index f36af01035b1..eb74580011ed 100644 --- a/bin/rcp/rcp.c +++ b/bin/rcp/rcp.c @@ -307,7 +307,7 @@ toremote(char *targ, int argc, char *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]; @@ -334,7 +334,7 @@ toremote(char *targ, int argc, char *argv[]) if (rem == -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; #ifdef KERBEROS @@ -374,7 +374,7 @@ tolocal(int argc, char *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]); @@ -401,7 +401,7 @@ tolocal(int argc, char *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); rem = #ifdef KERBEROS |