File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ void Dmap( const idCmdArgs &args ) {
309
309
bool region = false ;
310
310
// if this isn't a regioned map, delete the last saved region map
311
311
if ( passedName.Right ( 4 ) != " .reg" ) {
312
- sprintf ( path, " %s.reg" , dmapGlobals.mapFileBase );
312
+ idStr::snPrintf ( path, sizeof (path) , " %s.reg" , dmapGlobals.mapFileBase );
313
313
fileSystem->RemoveFile ( path );
314
314
} else {
315
315
region = true ;
@@ -319,7 +319,7 @@ void Dmap( const idCmdArgs &args ) {
319
319
passedName = stripped;
320
320
321
321
// delete any old line leak files
322
- sprintf ( path, " %s.lin" , dmapGlobals.mapFileBase );
322
+ idStr::snPrintf ( path, sizeof (path) , " %s.lin" , dmapGlobals.mapFileBase );
323
323
fileSystem->RemoveFile ( path );
324
324
325
325
You can’t perform that action at this time.
0 commit comments