libmultipath: fixup string copy and comparison