This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [TESTSUITE]Use strncpy instead of strcpy in testsuite/gcc.dg/memcmp-1.c
- From: Mike Stump <mikestump at comcast dot net>
- To: Renlin Li <renlin dot li at foss dot arm dot com>
- Cc: Aaron Sawdey <acsawdey at linux dot vnet dot ibm dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 30 Aug 2017 18:20:27 -0700
- Subject: Re: [TESTSUITE]Use strncpy instead of strcpy in testsuite/gcc.dg/memcmp-1.c
- Authentication-results: sourceware.org; auth=none
- References: <59A68270.7010101@foss.arm.com> <1504103852.4777.1.camel@linux.vnet.ibm.com> <59A6DA43.60906@foss.arm.com>
On Aug 30, 2017, at 8:31 AM, Renlin Li <renlin.li@foss.arm.com> wrote:
> memcpy is better than strncpy in this case.
> Here is the updated patch.
Ok.