This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: -Wstringop-truncation warnings
- From: DJ Delorie <dj at redhat dot com>
- To: Alan Modra <amodra at gmail dot com>
- Cc: hjl dot tools at gmail dot com, binutils at sourceware dot org
- Date: Mon, 07 May 2018 02:24:44 -0400
- Subject: Re: -Wstringop-truncation warnings
Alan Modra <amodra@gmail.com> writes:
> - && strncmp (isym.n_name, ".bf", sizeof isym.n_name) != 0
> + && memcmp (isym.n_name, ".bf", sizeof ".bf") != 0
Is this really the same if isym.n_name[] is ".bf1234\0\0" ?