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

2013-04-10 Thread Rusty Russell
Chen Gang 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. -- To unsubscribe from this lis

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

2013-04-09 Thread Chen Gang
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. Signed-off-by: Chen Gang --- kernel/module.c |4 ++-- 1 files changed, 2 insertion