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)