diff --git a/src/c_cmds.cpp b/src/c_cmds.cpp index 8a7c2c05f..dc78f21e3 100644 --- a/src/c_cmds.cpp +++ b/src/c_cmds.cpp @@ -881,7 +881,7 @@ CCMD(getdate) { char timeString[1024]; if (strftime(timeString, sizeof(timeString), "%H:%M:%S %d-%m-%Y%n", timeinfo)) - Printf(timeString); + Printf("%s\n", timeString); else Printf("Error Retrieving Current Date\n"); } diff --git a/src/scripting/vmthunks.cpp b/src/scripting/vmthunks.cpp index 87275a7ca..166735886 100644 --- a/src/scripting/vmthunks.cpp +++ b/src/scripting/vmthunks.cpp @@ -2893,7 +2893,7 @@ static FString CheckStrfString(FString timeForm) if (t.Len() == 0) return FString("%"); // Single Character - for (int i = 0; i < sizeof(validSingles)/sizeof(validSingles[0]); i++) + for (size_t i = 0; i < sizeof(validSingles)/sizeof(validSingles[0]); i++) { if (t[0] == validSingles[i]) {