mirror of
https://github.com/glest/glest-source.git
synced 2025-09-29 00:48:58 +02:00
- lots more code cleanup, using safe buffer size code to avoid buffer overflows
This commit is contained in:
@@ -481,8 +481,8 @@ void ParticleSystem::fade(){
|
||||
|
||||
if(particleObserver != NULL){
|
||||
if(state != sPlay) {
|
||||
char szBuf[4096]="";
|
||||
sprintf(szBuf,"state != sPlay, state = [%d]",state);
|
||||
char szBuf[8096]="";
|
||||
snprintf(szBuf,8096,"state != sPlay, state = [%d]",state);
|
||||
//throw megaglest_runtime_error(szBuf);
|
||||
//printf(szBuf);
|
||||
SystemFlags::OutputDebug(SystemFlags::debugError,"%s",szBuf);
|
||||
|
Reference in New Issue
Block a user