mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
Fix a potential buffer overflow
Highly unlikely to have that many sub models, but it does keep gcc quiet.
This commit is contained in:
parent
9d09d65d9a
commit
6ce87497f3
1 changed files with 1 additions and 1 deletions
|
@ -962,7 +962,7 @@ Mod_LoadBrushModel (model_t *mod, void *buffer)
|
|||
|
||||
if (i < mod->numsubmodels - 1) {
|
||||
// duplicate the basic information
|
||||
char name[10];
|
||||
char name[12];
|
||||
|
||||
snprintf (name, sizeof (name), "*%i", i + 1);
|
||||
loadmodel = Mod_FindName (name);
|
||||
|
|
Loading…
Reference in a new issue