mirror of
https://github.com/storytold/UE4-OSC.git
synced 2026-10-09 00:09:43 +00:00
Revert "Update OscReceiverInputKey.cpp to remove sprintf warning." at the suggestion of monsieurgustav.
This reverts commit e850b90ccd.
This commit is contained in:
@@ -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<ANSICHAR>(*address).Get());
|
||||
const auto length = sprintf(buffer, "OSC%.500s", StringCast<ANSICHAR>(*address).Get());
|
||||
|
||||
// replace '/' by '_' because '/' is not a valid FKey character.
|
||||
for(int i=0; i!=length; ++i)
|
||||
|
||||
Reference in New Issue
Block a user