mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2025-04-01 10:11:49 +00:00
Fix off-by-one in localmodels array size calculation
Introduced in 8088798. Oops! Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
46f31a8641
commit
0947565f7f
@ -42,7 +42,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
server_t sv;
|
||||
server_static_t svs;
|
||||
|
||||
#define MODSTRLEN (sizeof(stringify(MAX_MODELS)) / sizeof(char))
|
||||
#define MODSTRLEN (sizeof("*" stringify(MAX_MODELS)) / sizeof(char))
|
||||
char localmodels[MAX_MODELS][MODSTRLEN]; // inline model names for precache
|
||||
|
||||
//============================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user