[Gui] View3DInventorViewer: fix a GH action report

- use sizeof instead of the hardcoded number
This commit is contained in:
Uwe
2023-01-27 02:29:59 +01:00
committed by Chris Hennes
parent e188802ca6
commit 18fdd3f708

View File

@@ -3358,7 +3358,9 @@ SoPath* View3DInventorViewer::pickFilterCB(void* viewer, const SoPickedPoint* pp
std::string e = vp->getElement(pp->getDetail());
vp->getSelectionShape(e.c_str());
static char buf[513];
snprintf(buf,512,"Hovered: %s (%f,%f,%f)"
snprintf(buf,
sizeof(buf),
"Hovered: %s (%f,%f,%f)"
,e.c_str()
,pp->getPoint()[0]
,pp->getPoint()[1]