* fixed some issues found with clangs static analyzer (use strlcpy instead of strcpy)