pmdahacluster: ensure string copies are null terminated
pmdahacluster: ensure string copies are null terminated

Fixes issues reported by Coverity scan.

adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp