From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id E7B663858D39; Wed, 17 Apr 2024 20:12:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7B663858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713384749; bh=MaZa1NK8E9MBQc2NH+KKE33zjsSPyq1LJBhEJ98cYyM=; h=From:To:Subject:Date:From; b=L3CX+JzETVjdjo9vFmpx5lP80OTOBNsPM/D27438UJmaIlhfFd6mrLNEVDiDRo6vm iX/8k9PW+//nZn++tliKCakasyKhkSvwJlXFgGKwqcRU7w484fpT3jSeI9kb3PzBlM 0+XBibv8fzXW4kxsbdLnLa+43Lso/BiyWYPohkq4= 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: 8c0ae678b6ca61f5590856de38ee9652ab886376 X-Git-Newrev: 74bbd495acafd15d9ca790bc1c03ffcf6d3cfe38 Message-Id: <20240417201229.E7B663858D39@sourceware.org> Date: Wed, 17 Apr 2024 20:12:29 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=74bbd495acafd15d9ca790bc1c03ffcf6d3cfe38 commit 74bbd495acafd15d9ca790bc1c03ffcf6d3cfe38 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. */