[GOLD] gcc-11 stringop-overflow warning

Cary Coutant ccoutant@gmail.com
Mon Dec 7 17:22:42 GMT 2020


>
> Applied as obvious, or at least, not wrong.
>
>         * plugin.cc (Plugin_recorder::init): Replace strncpy with memcpy.
>

Yes, I like that better. Seems like a reasonable warning, even if it isn't
flagging incorrect code. Thanks!

-cary


More information about the Binutils mailing list