Coverity fixes
151677 151789 - OK as is 152005 152508 154871 - false positive 156593 163235
This commit is contained in:
committed by
Yorik van Havre
parent
033242ead8
commit
cbf42ad3b0
@@ -383,6 +383,7 @@ void CmdTechDrawNewDiameterDimension::activated(int iMsg)
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
|
||||
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/Dimensions");
|
||||
std::string diamSym = hGrp->GetASCII("DiameterSymbol","\xe2\x8c\x80");
|
||||
diamSym = diamSym.substr (0,79); //coverity 156593
|
||||
const char * format = "%value%";
|
||||
char formatSpec[80];
|
||||
std::strcpy (formatSpec,diamSym.c_str());
|
||||
|
||||
Reference in New Issue
Block a user