nullify unused space of bspShaders.shader to write cleaner bsp

This commit is contained in:
Garux 2020-02-13 05:12:57 +03:00
parent 0b1389b5a4
commit 065c415839

View File

@ -84,7 +84,7 @@ int EmitShader( const char *shader, int *contentFlags, int *surfaceFlags ){
AUTOEXPAND_BY_REALLOC_BSP( Shaders, 1024 );
numBSPShaders++;
strcpy( bspShaders[ i ].shader, shader );
strncpy( bspShaders[ i ].shader, shader, sizeof( bspShaders[ i ].shader ) ); // copy and clear the rest of memory
bspShaders[ i ].surfaceFlags = si->surfaceFlags;
bspShaders[ i ].contentFlags = si->contentFlags;