qbsp: increase and check model name buffer size

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-02-14 14:40:48 +10:30
parent 2f7809ddcb
commit 1cbd5a8a0b
1 changed files with 2 additions and 2 deletions

View File

@ -45,11 +45,11 @@ ProcessEntity(mapentity_t *ent)
return;
if (map.iEntities > 0) {
char mod[8];
char mod[20];
if (map.iEntities == 1)
Message(msgProgress, "Internal Entities");
sprintf(mod, "*%i", map.cTotal[BSPMODEL]);
snprintf(mod, sizeof(mod), "*%i", map.cTotal[BSPMODEL]);
if (options.fVerbose)
PrintEntity(ent);