mirror of
https://github.com/iAmInActions/SpaceCadetPinballPPC.git
synced 2026-08-15 05:16:36 +00:00
Made it compile with GCC on Linux.
Fixed GCC warnings and Windows specifics. Restored C++11, switch to 14 was not supposed to happen. Not 100% sure about my Find* module section.
This commit is contained in:
@@ -13,7 +13,7 @@ TTextBoxMessage::TTextBoxMessage(char* text, float time)
|
||||
const auto textLen = strlen(text) + 1;
|
||||
Text = memory::allocate(textLen);
|
||||
if (Text)
|
||||
strcpy_s(Text, textLen, text);
|
||||
strncpy(Text, text, textLen);
|
||||
}
|
||||
else
|
||||
Text = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user