powerpc/powermac: Cleaning up missing null-terminate in conjunction with strncpy
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sat, 26 Jul 2014 16:45:05 +0000 (18:45 +0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 17 Mar 2015 04:55:52 +0000 (15:55 +1100)
commita02c0af2f0c4b3c85e828f60ac3459456cfad1e6
tree3f6ab492ac8d62bcd0975ff7485698ebbd002801
parente702240e8364952e260829c8700fbc870aa4b053
powerpc/powermac: Cleaning up missing null-terminate in conjunction with strncpy

Replacing strncpy with strlcpy to avoid strings that lacks null terminate.
And removed unnecessary magic numbers.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powermac/bootx_init.c