solaris: fix strncpy truncation warningsSigned-off-by: Brice Goglin <Brice.Goglin@inria.fr>(cherry picked from commit 9969ff037930c5787698421101634d06eee87328)