(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)
This commit is contained in:
@@ -2102,7 +2102,7 @@ uint NetworkServerKickOrBanIP(const char *ip, bool ban)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!contains) *_network_ban_list.Append() = strdup(ip);
|
||||
if (!contains) *_network_ban_list.Append() = stredup(ip);
|
||||
}
|
||||
|
||||
uint n = 0;
|
||||
|
Reference in New Issue
Block a user