[PATCH v2] arch: blackfin: kernel: using strlcpy() instead of strncpy()

2013-05-26 Thread Chen Gang
For NULL terminated string, need always be sure of ended by zero. Just use strlcpy() instead of strncpy(). Signed-off-by: Chen Gang --- arch/blackfin/kernel/setup.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/blackfin/kernel/setup.c

[PATCH v2] arch: blackfin: kernel: using strlcpy() instead of strncpy()

2013-05-26 Thread Chen Gang
For NULL terminated string, need always be sure of ended by zero. Just use strlcpy() instead of strncpy(). Signed-off-by: Chen Gang gang.c...@asianux.com --- arch/blackfin/kernel/setup.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/blackfin/kernel/setup.c