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:
Jonas Sundström 2011-02-24 09:35:55 +00:00
parent 1fc4ba42c2
commit dc36ea92be

View File

@ -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);