Removed last snprintf and all strlcat
Wrote substitute for strncasecmp and strcasecmp