Replace custom vulnxml_dup_str by strndup