"Interesting" warnings from gcc 8.0.1

Hal Murray hmurray at megapathdsl.net
Mon Apr 9 08:01:51 UTC 2018


> The ANSI C function you look for is strncat, I'd think.

Actually, strncat checks for bogus source.  We have constants for the source. 
 We want to check for overflowing the destination.  Fortunately, we have 
strlcat, even if the environment doesn't provide it.

Thanks for pointing me in the right direction.


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list