-Wstringop-truncation warnings
Alan Modra
amodra@gmail.com
Mon May 7 08:40:00 GMT 2018
On Mon, May 07, 2018 at 02:24:44AM -0400, DJ Delorie wrote:
>
> 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" ?
Yes. sizeof ".bf" is 4, so the NUL is included.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list