Re: [PATCH v3] kernel: module: using strlcpy and strcpy instead of strncpy

Rusty Russell
2013-04-10T10:35:28Z

Chen Gang <gang.chen@asianux.com> writes:
> namebuf is NUL terminated string. better always let it ended by '\0'.
>
> the module_name() is always the name field of struct module (which is
> a fixed array), or a literal "kernel", so strcpy is better.

Thanks, applied.

Cheers,
Rusty.