aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/cp.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/cp.c')
-rw-r--r--toys/posix/cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/cp.c b/toys/posix/cp.c
index 088f224d..817a0c62 100644
--- a/toys/posix/cp.c
+++ b/toys/posix/cp.c
@@ -176,7 +176,7 @@ int cp_node(struct dirtree *try)
if (*or->name == '/') dotdots = 0;
if (dotdots) {
- char *s2 = xmsprintf("% *c%s", 3*dotdots, ' ', s);
+ char *s2 = xmprintf("% *c%s", 3*dotdots, ' ', s);
free(s);
s = s2;
while(dotdots--) {
@@ -275,7 +275,7 @@ void cp_main(void)
char *src = toys.optargs[i];
int rc = 1;
- if (destdir) TT.destname = xmsprintf("%s/%s", destname, basename(src));
+ if (destdir) TT.destname = xmprintf("%s/%s", destname, basename(src));
else TT.destname = destname;
errno = EXDEV;