replace snprintf with strlcpy without adding extra include