From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 958EB3858031; Thu, 9 Feb 2023 19:53:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 958EB3858031 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675972408; bh=gyxYTk0UY4csCK0Lw6nZ/2i8mhJlM9TP1ibZCAR85g0=; h=From:To:Subject:Date:From; b=gUPnXOOtj7F53MYB+yo49flp13zM2S/lJqyPiWlQMPZKUzdS/1+/Tif3Iowt38/tH icptYRvshIIquS8MxVkG+BMAQod929oP/D+/XE107wqUUDAKqPA/fo/EdKx72gO8PD OHA7zeEGM6l69D9W5ku5axIKJu4bZ0SLiWBqQ/hE= 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: f182c5acdd6eb6e989fa251c1cf5055309065061 X-Git-Newrev: c0b58ae3aec8d8053c5f21b1f8ff15ca25ac07b4 Message-Id: <20230209195328.958EB3858031@sourceware.org> Date: Thu, 9 Feb 2023 19:53:28 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c0b58ae3aec8d8053c5f21b1f8ff15ca25ac07b4 commit c0b58ae3aec8d8053c5f21b1f8ff15ca25ac07b4 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 71425c2545..f195bb07c6 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. */