diff --git a/src/replay/replay_recorder.cpp b/src/replay/replay_recorder.cpp index c32a8e974..838c20ac1 100644 --- a/src/replay/replay_recorder.cpp +++ b/src/replay/replay_recorder.cpp @@ -254,10 +254,8 @@ void ReplayRecorder::update(int ticks) // Only print this message once. if (m_count_transforms[i] == m_transform_events[i].size()) { - char buffer[100]; - sprintf(buffer, "Can't store more events for kart %s.", - kart->getIdent().c_str()); - Log::warn("ReplayRecorder", buffer); + Log::warn("ReplayRecorder", "Can't store more events for kart %s.", + kart->getIdent().c_str()); m_incorrect_replay = single_player; } continue;