Re: build failure with -D_FORTIFY_SOURCE=2

2015-10-25 Thread Vladimir Lettiev
On Sun, Oct 25, 2015 at 10:32:33PM +0100, Ondrej Zajicek wrote: > On Sun, Oct 25, 2015 at 05:31:52PM +0300, Vladimir Lettiev wrote: > > Hi. > > > > Just got a build failure with recent gcc with enabled option > > FORTIFY_SOURCE=2: > > > > In function 'strncpy', > > inlined from 'rip_outgoing

Re: build failure with -D_FORTIFY_SOURCE=2

2015-10-25 Thread Ondrej Zajicek
On Sun, Oct 25, 2015 at 05:31:52PM +0300, Vladimir Lettiev wrote: > Hi. > > Just got a build failure with recent gcc with enabled option FORTIFY_SOURCE=2: > > In function 'strncpy', > inlined from 'rip_outgoing_authentication' at > ../../../proto/rip/auth.c:134:5: > /usr/include/bits/string3

build failure with -D_FORTIFY_SOURCE=2

2015-10-25 Thread Vladimir Lettiev
Hi. Just got a build failure with recent gcc with enabled option FORTIFY_SOURCE=2: In function 'strncpy', inlined from 'rip_outgoing_authentication' at ../../../proto/rip/auth.c:134:5: /usr/include/bits/string3.h:120:10: error: call to __builtin___strncpy_chk will always overflow destinatio