replace strlcat with snprintf