Fix a potential buffer overflow

Highly unlikely to have that many sub models, but it does keep gcc
quiet.
This commit is contained in:
Bill Currie 2020-02-06 17:38:51 +09:00
parent 9d09d65d9a
commit 6ce87497f3

View file

@ -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);