test/distributor: replace sprintf with strlcpy