diff options
author | Rob Landley <rob@landley.net> | 2014-01-16 09:26:50 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-01-16 09:26:50 -0600 |
commit | 59d85e2bb065a3bdc27868acb7a65f89d872c7fa (patch) | |
tree | 25db9183f6e142b7c5f12b69e9728aaa98f5bbd6 /toys/posix/ln.c | |
parent | 2ded83376cb822198e83048335417a0e870f2240 (diff) | |
download | toybox-59d85e2bb065a3bdc27868acb7a65f89d872c7fa.tar.gz |
Rename xmsprintf() to just xmprintf().
Partly because there's no supplied target string ala sprintf, and partly
because I can never remember what order the m and s go in.
Diffstat (limited to 'toys/posix/ln.c')
-rw-r--r-- | toys/posix/ln.c | 2 |
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); |