CID 6337 SECURE_CODING
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40658 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1fc4ba42c2
commit
dc36ea92be
@ -695,7 +695,7 @@ BMessage::_PrintToStream(const char* indent) const
|
||||
case B_MESSAGE_TYPE:
|
||||
{
|
||||
char buffer[1024];
|
||||
sprintf(buffer, "%s ", indent);
|
||||
snprintf(buffer, sizeof(buffer), "%s ", indent);
|
||||
|
||||
BMessage message;
|
||||
status_t result = message.Unflatten((const char *)pointer);
|
||||
|
Loading…
Reference in New Issue
Block a user