- fixed several warnings emitted by Clang.

This commit is contained in:
Christoph Oelckers 2023-03-26 08:33:09 +02:00 committed by nashmuhandes
commit b8f5511ee4
12 changed files with 21 additions and 16 deletions

View file

@ -218,7 +218,7 @@ void FEventTree::PrintTree (const FEvent *event) const
if (event != &Nil)
{
PrintTree(event->Left);
sprintf(buff, " Distance %g, vertex %d, seg %u\n",
snprintf(buff, sizeof(buff), " Distance %g, vertex %d, seg %u\n",
g_sqrt(event->Distance/4294967296.0), event->Info.Vertex, (unsigned)event->Info.FrontSeg);
Printf(PRINT_LOG, "%s", buff);
PrintTree(event->Right);