mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
Make sure unterminated lump names don't cause propblems when comparing.
This commit is contained in:
parent
1902ca6159
commit
3f08268038
1 changed files with 2 additions and 2 deletions
|
@ -73,8 +73,8 @@ wad_get_hash (void *l, void *unused)
|
|||
static int
|
||||
wad_compare (void *la, void *lb, void *unused)
|
||||
{
|
||||
return strcasecmp (((lumpinfo_t *) la)->name,
|
||||
((lumpinfo_t *) lb)->name) == 0;
|
||||
return strncasecmp (((lumpinfo_t *) la)->name,
|
||||
((lumpinfo_t *) lb)->name, 16) == 0;
|
||||
}
|
||||
|
||||
VISIBLE wad_t *
|
||||
|
|
Loading…
Reference in a new issue