From 1cbd5a8a0b8753eefa306e515aeb97d1f84cc8bd Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Thu, 14 Feb 2013 14:40:48 +1030 Subject: [PATCH] qbsp: increase and check model name buffer size Signed-off-by: Kevin Shanahan --- qbsp/qbsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qbsp/qbsp.c b/qbsp/qbsp.c index 481ef7d9..b1514b29 100644 --- a/qbsp/qbsp.c +++ b/qbsp/qbsp.c @@ -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);