aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/ln.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/ln.c')
-rw-r--r--toys/posix/ln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/ln.c b/toys/posix/ln.c
index 3c94e721..d8f4ce62 100644
--- a/toys/posix/ln.c
+++ b/toys/posix/ln.c
@@ -48,7 +48,7 @@ void ln_main(void)
int rc;
char *try = toys.optargs[i];
- if (S_ISDIR(buf.st_mode)) new = xmsprintf("%s/%s", dest, basename(try));
+ if (S_ISDIR(buf.st_mode)) new = xmprintf("%s/%s", dest, basename(try));
else new = dest;
// Silently unlink the existing target (if any)
if (toys.optflags & FLAG_f) unlink(new);