From b411f8c60d523f831234412070cd3031a1b9899a Mon Sep 17 00:00:00 2001 From: Benau Date: Thu, 3 Feb 2022 10:51:15 +0800 Subject: [PATCH] Remove unneeded sprintf --- src/replay/replay_recorder.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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;