From 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:44:50 -0500 Subject: Second Life viewer sources 1.14.0.0 --- linden/indra/newview/llvelocitybar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linden/indra/newview/llvelocitybar.cpp') diff --git a/linden/indra/newview/llvelocitybar.cpp b/linden/indra/newview/llvelocitybar.cpp index d285733..403ff4f 100644 --- a/linden/indra/newview/llvelocitybar.cpp +++ b/linden/indra/newview/llvelocitybar.cpp @@ -121,8 +121,8 @@ void LLVelocityBar::draw() top = BAR_TOP + 15; left = 0; - char str[80]; - sprintf(str, "Velocity %.3fm/s", velocity); + char str[80]; /* Flawfinder: ignore */ + snprintf(str, sizeof(str), "Velocity %.3fm/s", velocity); /* Flawfinder: ignore */ LLFontGL::sMonospace->renderUTF8(str, 0, left, top, color, LLFontGL::LEFT, LLFontGL::TOP); top = TICK_BOTTOM; -- cgit v1.1