summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/rcp/rcp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c
index f5fe5a1f027..417a1f2f31a 100644
--- a/bin/rcp/rcp.c
+++ b/bin/rcp/rcp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcp.c,v 1.43 2006/03/12 01:51:15 djm Exp $ */
+/* $OpenBSD: rcp.c,v 1.44 2006/03/23 02:48:57 deraadt Exp $ */
/* $NetBSD: rcp.c,v 1.9 1995/03/21 08:19:06 cgd Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)rcp.c 8.2 (Berkeley) 4/2/94";
#else
-static const char rcsid[] = "$OpenBSD: rcp.c,v 1.43 2006/03/12 01:51:15 djm Exp $";
+static const char rcsid[] = "$OpenBSD: rcp.c,v 1.44 2006/03/23 02:48:57 deraadt Exp $";
#endif
#endif /* not lint */
@@ -242,7 +242,7 @@ toremote(char *targ, int argc, char *argv[])
alist.list = NULL;
if ((user = strdup(pwd->pw_name)) == NULL)
- err(1, "malloc");
+ err(1, "strdup");
*targ++ = 0;
if (*targ == 0)
@@ -250,7 +250,7 @@ toremote(char *targ, int argc, char *argv[])
arg = strdup(argv[argc - 1]);
if (!arg)
- err(1, "malloc");
+ err(1, "strdup");
if ((thost = strchr(arg, '@'))) {
/* user@host */
*thost++ = 0;
@@ -339,7 +339,7 @@ tolocal(int argc, char *argv[])
alist.list = NULL;
if ((user = strdup(pwd->pw_name)) == NULL)
- err(1, "malloc");
+ err(1, "strdup");
for (i = 0; i < argc - 1; i++) {
if (!(src = colon(argv[i]))) { /* Local to local. */