This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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" ?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]