From bf50dab32a24b759f5c233bd1feed0a37f16b675 Mon Sep 17 00:00:00 2001 From: L05 Date: Wed, 19 Feb 2020 06:20:29 -0800 Subject: [PATCH] Revert "Update OscReceiverInputKey.cpp to remove sprintf warning." at the suggestion of monsieurgustav. This reverts commit e850b90ccd5b7713c7a4cbe59a1ad499cf78e092. --- OSC/Source/OSC/Private/Receive/OscReceiverInputKey.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OSC/Source/OSC/Private/Receive/OscReceiverInputKey.cpp b/OSC/Source/OSC/Private/Receive/OscReceiverInputKey.cpp index 69cfc43..2050405 100644 --- a/OSC/Source/OSC/Private/Receive/OscReceiverInputKey.cpp +++ b/OSC/Source/OSC/Private/Receive/OscReceiverInputKey.cpp @@ -10,7 +10,7 @@ OscReceiverInputKey::OscReceiverInputKey(const FString &address) _addressName(*address) { char buffer[512]; // address truncated after 500 chars. - const auto length = sprintf_s(buffer, sizeof(buffer), "OSC%.500s", StringCast(*address).Get()); + const auto length = sprintf(buffer, "OSC%.500s", StringCast(*address).Get()); // replace '/' by '_' because '/' is not a valid FKey character. for(int i=0; i!=length; ++i)