mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0025537: XmlMPrsStd_PositionDriver::Paste runtime check crash.
Increased a size of buffer in array of 'char' to fit the largest possible conversion from 'double' to %.17g string.
This commit is contained in:
@@ -61,7 +61,7 @@ XmlObjMgt_DOMString XmlObjMgt_GP::Translate (const gp_Mat& aMat)
|
||||
//=======================================================================
|
||||
XmlObjMgt_DOMString XmlObjMgt_GP::Translate (const gp_XYZ& anXYZ)
|
||||
{
|
||||
char buf [64];
|
||||
char buf [75]; // (24 + 1) * 3
|
||||
Sprintf (buf, "%.17g %.17g %.17g", anXYZ.X(), anXYZ.Y(), anXYZ.Z());
|
||||
return XmlObjMgt_DOMString (buf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user