mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-12 01:32:16 +00:00
Merge branch 'fixmodelinitoverflow' into 'master'
Fix buffer overflow in HWR_InitModels See merge request KartKrew/RingRacers!114
This commit is contained in:
commit
dcef3fd4e9
1 changed files with 4 additions and 1 deletions
|
|
@ -495,7 +495,10 @@ void HWR_InitModels(void)
|
|||
size_t i;
|
||||
INT32 s;
|
||||
FILE *f;
|
||||
char name[24], filename[32];
|
||||
char name[26], filename[32];
|
||||
// name[24] is used to check for names in the models.dat file that match with sprites or player skins
|
||||
// sprite names are always 4 characters long, and names is for player skins can be up to 19 characters long
|
||||
// PLAYERMODELPREFIX is 6 characters long
|
||||
float scale, offset;
|
||||
size_t prefixlen;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue