diff --git a/src/kits/app/Message.cpp b/src/kits/app/Message.cpp index e99d3ee74e..8cc5c4049a 100644 --- a/src/kits/app/Message.cpp +++ b/src/kits/app/Message.cpp @@ -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);