On 01/24/2019 06:16 AM, Yafang Shao wrote: > As strncpy(..., TCP_CA_NAME_MAX-1) is used in bpf_setsockopt(), > this change will make it more consistent with the bpf_setsockopt() above. > > Acked-by: Martin KaFai Lau <[email protected]> > Acked-by: Lawrence Brakmo <[email protected]> > Signed-off-by: Yafang Shao <[email protected]>
While not wrong, I also don't think it improves much either. As mentioned, that code is totally fine as it currently is.
