@@ -472,7 +472,7 @@ void MapObjectProps::_ScaleToDict(void)
472472void MapObjectProps::ShowZOffset (MapObject *pMapObj)
473473{
474474 const Coord3D *loc = pMapObj->getLocation ();
475- static char buff[64 ];
475+ static char buff[32 ];
476476 m_height = loc->z ;
477477 snprintf (buff, ARRAY_SIZE (buff), " %0.2f" , loc->z );
478478 CWnd* edit = GetDlgItem (IDC_MAPOBJECT_ZOffset);
@@ -504,7 +504,7 @@ void MapObjectProps::SetZOffset(void)
504504void MapObjectProps::ShowAngle (MapObject *pMapObj)
505505{
506506 m_angle = pMapObj->getAngle () * 180 / PI;
507- static char buff[64 ];
507+ static char buff[32 ];
508508 snprintf (buff, ARRAY_SIZE (buff), " %0.2f" , m_angle);
509509 CWnd* edit = GetDlgItem (IDC_MAPOBJECT_Angle);
510510 edit->SetWindowText (buff);
@@ -515,7 +515,7 @@ void MapObjectProps::ShowAngle(MapObject *pMapObj)
515515void MapObjectProps::ShowPosition (MapObject *pMapObj)
516516{
517517 m_position = *pMapObj->getLocation ();
518- static char buff[128 ];
518+ static char buff[64 ];
519519 snprintf (buff, ARRAY_SIZE (buff), " %0.2f, %0.2f" , m_position.x , m_position.y );
520520 CWnd* edit = GetDlgItem (IDC_MAPOBJECT_XYPosition);
521521 edit->SetWindowText (buff);
@@ -617,7 +617,7 @@ void MapObjectProps::PopSliderChanged(const long sliderID, long theVal)
617617 return ;
618618
619619 CWnd* edit;
620- static char buff[64 ];
620+ static char buff[32 ];
621621 switch (sliderID) {
622622 case IDC_HEIGHT_POPUP:
623623 if (!m_posUndoable) {
@@ -1124,7 +1124,7 @@ void MapObjectProps::_DictToStoppingDistance(void)
11241124
11251125 CWnd* pItem = GetDlgItem (IDC_MAPOBJECT_StoppingDistance);
11261126 if (pItem) {
1127- static char buff[64 ];
1127+ static char buff[32 ];
11281128 snprintf (buff, ARRAY_SIZE (buff), " %g" , stoppingDistance);
11291129 pItem->SetWindowText (buff);
11301130 }
0 commit comments