Re: [PATCH v4 2/5] connector: use __get_task_comm in proc_comm_connector

From: Steven Rostedt
Date: Thu Oct 14 2021 - 09:31:19 EST


On Thu, 14 Oct 2021 17:26:16 +0800
Yafang Shao <laoar.shao@xxxxxxxxx> wrote:

> > > But that should probably be a separate patch.
> >
> > strscpy_pad() is the right thing here -- it'll retain the NUL-fill
> > properties of strncpy and terminate correctly.
> >
>
> strscpy_pad() can also work, and seems more simple.

I'm fine either way. As long as the string that is updated is terminated.

-- Steve