From 59d85e2bb065a3bdc27868acb7a65f89d872c7fa Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 16 Jan 2014 09:26:50 -0600 Subject: 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. --- toys/posix/ln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/ln.c') 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); -- cgit v1.2.3