summaryrefslogtreecommitdiff
path: root/sutils
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-08-01 20:29:09 +0000
committerThomas Bushnell <thomas@gnu.org>1996-08-01 20:29:09 +0000
commite972e2e8ba785503ce7040cf24b32811036639fa (patch)
tree36bbc5301658e9acd917ec9b1059674cf8aeaff7 /sutils
parentdd17c39a82bd4f2e9b273b95f5442c6eaa934c1c (diff)
(file_name_lookup_carefully/lookup): When appending TAIL to
RETRY_NAME, use strcpy instead of strcat.
Diffstat (limited to 'sutils')
-rw-r--r--sutils/clookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sutils/clookup.c b/sutils/clookup.c
index 8db06295..e39ddd64 100644
--- a/sutils/clookup.c
+++ b/sutils/clookup.c
@@ -131,7 +131,7 @@ file_name_lookup_carefully (const char *name, int flags, mode_t mode)
{
if (rtn_len > 0 && retry_name[rtn_len - 1] != '/')
retry_name[rtn_len++] = '/';
- strcat (retry_name, tail);
+ strcpy (retry_name + rtn_len, tail);
}
}