> From: Hans-Bernhard Bröker <[email protected]>
> Date: Tue, 17 Sep 2019 20:23:43 +0200
> Cc: Texinfo <[email protected]>
> 
> The call patterns in question,
> 
>       strncat(dest, src, strlen(src));
>       strncat(dest, "ab", 2);
> 
> are absolutely equivalent to the simpler
> 
>       strcat(dest, src);
>       strcat(dest, "ab");
> 
> Using strncat() like that offers no benefit at all.  So why even bother
> with the extra verbiage of using the 'n' version?

Some of the strncat calls in that file don't copy complete strings,
though, and they still cause warnings.

Reply via email to