mirror of
https://github.com/glest/glest-source.git
synced 2025-09-27 07:59:00 +02:00
- lots more code cleanup, using safe buffer size code to avoid buffer overflows
This commit is contained in:
@@ -1194,9 +1194,7 @@ void BaseColorPickEntity::init(int bufferSize) {
|
||||
}
|
||||
|
||||
string BaseColorPickEntity::getColorDescription() const {
|
||||
//string result = "";
|
||||
char szBuf[100]="";
|
||||
//sprintf(szBuf,"%d.%d.%d.%d",uniqueColorID[0],uniqueColorID[1],uniqueColorID[2],uniqueColorID[3]);
|
||||
snprintf(szBuf,100,"%d.%d.%d",uniqueColorID[0],uniqueColorID[1],uniqueColorID[2]);
|
||||
string result = szBuf;
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user