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
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
2 matches
Mail list logo