On Wed, Sep 18, 2019 at 9:07 PM Hans-Bernhard Bröker
<[email protected]> wrote:
> OTOH if what these calls are supposed to be doing is really is "copy n
> bytes", it would be more honest to replace them by variations of
>
>         memcpy (dest + strlen(dest), src, n);
>
> (with some actual book-keeping to replace the repeated determination of
> strlen(dest), obviously).
>

This may be better although we'd have to check that the final string
remained null-terminated in all instances.

Reply via email to