mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 10:51:10 +00:00
Use memcmp with strlen for correct_exists (it's a hell of a lot faster)
This commit is contained in:
parent
cc8558025b
commit
106db76b9d
1 changed files with 1 additions and 1 deletions
|
@ -399,7 +399,7 @@ static char **correct_edit(const char *ident) {
|
|||
static int correct_exist(char **array, size_t rows, char *ident) {
|
||||
size_t itr;
|
||||
for (itr = 0; itr < rows; itr++)
|
||||
if (!strcmp(array[itr], ident))
|
||||
if (!memcmp(array[itr], ident, strlen(ident)))
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue