From ae8f0d339ee10debf458802ef99b694555e750d8 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 11 Nov 2022 20:29:59 -0500 Subject: [PATCH] Remove usage of `sprintf`. --- OSBindings/Mac/Clock SignalTests/Comparative68000.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OSBindings/Mac/Clock SignalTests/Comparative68000.hpp b/OSBindings/Mac/Clock SignalTests/Comparative68000.hpp index b85e97248..73bb0c4a4 100644 --- a/OSBindings/Mac/Clock SignalTests/Comparative68000.hpp +++ b/OSBindings/Mac/Clock SignalTests/Comparative68000.hpp @@ -32,7 +32,7 @@ class ComparativeBusHandler: public CPU::MC68000Mk2::BusHandler { // Generate state locally. const auto state = get_state().registers; char local_state[300]; - sprintf(local_state, "%04x: %02x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x\n", + snprintf(local_state, sizeof(local_state), "%04x: %02x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x\n", address, state.status, state.data[0], state.data[1], state.data[2], state.data[3], state.data[4], state.data[5], state.data[6], state.data[7],