From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 599D83858D32; Mon, 29 Jan 2024 18:02:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 599D83858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706551352; bh=dGU3cmL7kKgb1PtqSgmvQDZWzRO3sWe1CAk7MwEEqTY=; h=From:To:Subject:Date:From; b=IeLWo+rPKYEp98uB+ZqH0a819VisnNqD04ujCoCQTG97HkjOtyO9O8gtiLtSRV7Bb ib7XbUI/yQ3El1y3SUWEj9gDiJW+KuFaV8lBgX6Ka8cDqyVbfpyNQhEvpYkx+dtwu4 kWAIuazArDGmrg6+qGd/Nozf48DD0qU+Aj8cquGo= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] intl: Use strcpy on _nl_make_l10nflist X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 0dd51b6b2369d2be36918fec5e58a8c45148baef X-Git-Newrev: 01d042206bbf335a7db874c6a10ee8a660ebe00e Message-Id: <20240129180232.599D83858D32@sourceware.org> Date: Mon, 29 Jan 2024 18:02:32 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=01d042206bbf335a7db874c6a10ee8a660ebe00e commit 01d042206bbf335a7db874c6a10ee8a660ebe00e Author: Adhemerval Zanella Date: Wed Aug 10 17:56:13 2022 -0300 intl: Use strcpy on _nl_make_l10nflist It avoid compiler to turn is on strcpy, which might generate a strcpy PLT call since there is no explicit redirection. Diff: --- intl/l10nflist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intl/l10nflist.c b/intl/l10nflist.c index 7eed651885..8ce64d30f6 100644 --- a/intl/l10nflist.c +++ b/intl/l10nflist.c @@ -210,7 +210,7 @@ _nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list, } *cp++ = '/'; - stpcpy (cp, filename); + strcpy (cp, filename); /* Look in list of already loaded domains whether it is already available. */