[Bug bootstrap/82948] [8 Regression] prefix.c:202:15: error: 'char* strncpy(char*, const char*, size_t)' destination unchanged after copying no bytes [-Werror=stringop-truncation]

sudi.das at arm dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 13 16:02:00 GMT 2017


Sudakshina Das <sudi.das at arm dot com> changed:

           What    |Removed                     |Added
                 CC|                            |sudi.das at arm dot com

--- Comment #3 from Sudakshina Das <sudi.das at arm dot com> ---
I think this is breaking glibc build on aarch64-none-linux-gnu and

../sysdeps/unix/sysv/linux/if_index.c: In function '__if_nametoindex':
../sysdeps/unix/sysv/linux/if_index.c:46:3: error: 'strncpy' specified bound 16
equals destination size [-Werror=stringop-truncation]
   strncpy (ifr.ifr_name, ifname, sizeof (ifr.ifr_name));

More information about the Gcc-bugs mailing list