From 11cecf7f221d6db0dadf2328d89cb6e5cd553af9 Mon Sep 17 00:00:00 2001 From: 3saster <43163391+3saster@users.noreply.github.com> Date: Sat, 29 Aug 2020 12:55:51 -0700 Subject: [PATCH] Removed some time specifiers that aren't standard and can crash GZDoom (#1166) A number of the specifiers were GNU extensions that aren't actually standard --- src/scripting/vmthunks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/vmthunks.cpp b/src/scripting/vmthunks.cpp index 3d6b1f5001..05602087e8 100644 --- a/src/scripting/vmthunks.cpp +++ b/src/scripting/vmthunks.cpp @@ -2682,7 +2682,7 @@ static int GetEpochTime() static FString CheckStrfString(FString timeForm) { // Valid Characters after % - const char validSingles[] = { 'a','A','b','B','c','C','d','D','e','F','G','g','h','H','I','j','k','l','m','M','n','p','P','r','R','s','S','t','T','u','U','V','w','W','x','X','y','Y','z','Z' }; + const char validSingles[] = { 'a','A','b','B','c','C','d','D','e','F','g','G','h','H','I','j','m','M','n','p','r','R','S','t','T','u','U','V','w','W','x','X','y','Y','z','Z' }; timeForm.Substitute("%%", "%a"); //Prevent %% from causing tokenizing problems timeForm = "a" + timeForm; //Prevent %* at the beginning from causing a false error from tokenizing