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
This commit is contained in:
3saster 2020-08-29 12:55:51 -07:00 committed by GitHub
parent 560bbf0a9c
commit 11cecf7f22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2682,7 +2682,7 @@ static int GetEpochTime()
static FString CheckStrfString(FString timeForm) static FString CheckStrfString(FString timeForm)
{ {
// Valid Characters after % // 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.Substitute("%%", "%a"); //Prevent %% from causing tokenizing problems
timeForm = "a" + timeForm; //Prevent %* at the beginning from causing a false error from tokenizing timeForm = "a" + timeForm; //Prevent %* at the beginning from causing a false error from tokenizing