diff options
author | Jim Meyering <jim@meyering.net> | 1993-08-27 04:43:46 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-08-27 04:43:46 +0000 |
commit | 27049d3bfc5acc53cc84a91a356441746b5608d6 (patch) | |
tree | 33e5ab1dc7246a3a549f4211ff6a6673daca1d2d /src/install.c | |
parent | 429043125e1842b92f1cdbc6c0a2772316c9d34e (diff) | |
download | coreutils-27049d3bfc5acc53cc84a91a356441746b5608d6.tar.xz |
merge with 3.8.3
Diffstat (limited to 'src/install.c')
-rw-r--r-- | src/install.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/install.c b/src/install.c index 9d579c22d..e6fc16276 100644 --- a/src/install.c +++ b/src/install.c @@ -91,6 +91,7 @@ int wait (); #define READ_SIZE (32 * 1024) char *basename (); +char *stpcpy (); char *xmalloc (); void error (); int make_path (); @@ -291,7 +292,7 @@ install_file_in_dir (from, to_dir) from_base = basename (from); to = xmalloc ((unsigned) (strlen (to_dir) + strlen (from_base) + 2)); - sprintf (to, "%s/%s", to_dir, from_base); + stpcpy (stpcpy (stpcpy (to, to_dir), "/"), from_base); ret = install_file_in_file (from, to); free (to); return ret; |