mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
fix a possible oob condition
This commit is contained in:
parent
b66c22d0e5
commit
3727753fde
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ COM_FileBase (char *in, char *out)
|
|||
while (s != in && *s != '.')
|
||||
s--;
|
||||
|
||||
for (s2 = s; *s2 && *s2 != '/'; s2--);
|
||||
for (s2 = s; s2 != in && *s2 && *s2 != '/'; s2--);
|
||||
|
||||
if (s - s2 < 2)
|
||||
strcpy (out, "?model?");
|
||||
|
|
Loading…
Reference in a new issue