cfgfile: replace strcat with strlcat