]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: using strlcpy() instead of strncpy()
authorChen Gang <gang.chen@asianux.com>
Sun, 26 May 2013 07:06:06 +0000 (07:06 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 29 May 2013 09:04:29 +0000 (11:04 +0200)
commitaf49d5211d5352b19869740561f7054ef8f33ae5
treeccb5d60a5b090315221df83f1ecce6a31ab9af66
parentff8f130cca8f2a4edb2f68f35d84c0291a5c4b53
MIPS: using strlcpy() instead of strncpy()

Ensure strings are always '\0' terminated.  Or in the next pr_info() shit
may hit the fan.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Acked-by: John Crispin <blogic@openwrt.org>
Cc: david.daney@cavium.com
Cc: linux-mips@linux-mips.org
Cc: Linux-Arch <linux-arch@vger.kernel.org>
Cc: linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org>
Patchwork: https://patchwork.linux-mips.org/patch/5331/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/prom.c