From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 70C9B385840C; Tue, 4 Oct 2022 13:04:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70C9B385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664888665; bh=ccNoABMyvaaVho68GjqTvAFp2fDt5B/wMu7sdBgPLjQ=; h=From:To:Subject:Date:From; b=me1ISNuNAwpUYJpkyAxouX9rukolysE7E2aujntBH7+wkxjoU59D4jVEs8PRrr399 o0T0Wxrj6JLl2VuYlqM60xbhNTVtujvXUwtTi4mo92MxLzwcWwqCBvo9q1p+D8nZxz s5bQNMDAGaAEPc3kleTCbyZqvyGe1zbMjdf5rl7M= 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: c693c7124b932ee210729aba21d2f58896d2cf33 X-Git-Newrev: 23331e55d3a95f5123830c5d9dde0081b0105dca Message-Id: <20221004130425.70C9B385840C@sourceware.org> Date: Tue, 4 Oct 2022 13:04:25 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=23331e55d3a95f5123830c5d9dde0081b0105dca commit 23331e55d3a95f5123830c5d9dde0081b0105dca 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 078a450dfe..1945d3f873 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. */