On Tue, Jun 12, 2018 at 01:25:35PM +1000, Duncan Roe wrote: > gcc 8.1 warns when it can detect that a strncpy may result in a string with no > null terminator. It also warns when it can similarly detect that an snprintf may > discard characters, unless the return value from that snprintf is tested. > gcc 8.1.0 (latest release) does not complain about the patched line, but the > gcc 8.1.1 snapshot that comes with FC28 does. > > Reported-by: Florian Westphal <fw@xxxxxxxxx> > Signed-off-by: Duncan Roe <duncan_roe@xxxxxxxxxxxxxxx> > --- [...] Should have mentioned, in case it's not obvious: this is an ebtables patch. Cheers ... Duncan. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html