From e972e2e8ba785503ce7040cf24b32811036639fa Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Thu, 1 Aug 1996 20:29:09 +0000 Subject: (file_name_lookup_carefully/lookup): When appending TAIL to RETRY_NAME, use strcpy instead of strcat. --- sutils/clookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3