On 01/22/2019 07:04 PM, Martin Lau wrote: > On Sat, Jan 19, 2019 at 02:20:52PM +0800, Yafang Shao wrote: >> As the last character of optval will be set with 0, so just copying >> (optlen - 1) characters is enough. > I am not sure this optimization is needed but I think it will
Yeah, it's totally fine as is.