Skip to content

Commit 5754c02

Browse files
authored
CXMLNodeImpl: minor buffer fix
1 parent 53524d9 commit 5754c02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Shared/XML/CXMLNodeImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ void CXMLNodeImpl::SetTagContent(float fContent)
328328
{
329329
// Convert to string and set it
330330
char szBuffer[40];
331-
sprintf(szBuffer, "%f", fContent);
331+
snprintf(szBuffer, sizeof(szBuffer), "%f", fContent);
332332
SetTagContent(szBuffer);
333333
}
334334

0 commit comments

Comments
 (0)