[Scummvm-git-logs] scummvm master -> f12bc7bf0bfa2a0b5c572a552093d858af4d01c4
digitall
noreply at scummvm.org
Sun May 5 16:38:37 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
f12bc7bf0b DIRECTOR: Fix Format Truncation GCC Compiler Warning
Commit: f12bc7bf0bfa2a0b5c572a552093d858af4d01c4
https://github.com/scummvm/scummvm/commit/f12bc7bf0bfa2a0b5c572a552093d858af4d01c4
Author: D G Turner (digitall at scummvm.org)
Date: 2024-05-05T17:38:19+01:00
Commit Message:
DIRECTOR: Fix Format Truncation GCC Compiler Warning
Changed paths:
engines/director/debugtools.cpp
diff --git a/engines/director/debugtools.cpp b/engines/director/debugtools.cpp
index 757834e93c7..0d82f310a1e 100644
--- a/engines/director/debugtools.cpp
+++ b/engines/director/debugtools.cpp
@@ -172,9 +172,9 @@ static void showControlPanel() {
ImGui::SameLine();
}
- char buf[5];
+ char buf[6];
- snprintf(buf, 5, "%d", score->getCurrentFrameNum());
+ snprintf(buf, 6, "%d", score->getCurrentFrameNum());
ImGui::SetNextItemWidth(30);
ImGui::InputText("##frame", buf, 5, ImGuiInputTextFlags_CharsDecimal);
More information about the Scummvm-git-logs
mailing list