mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 23:33:00 +00:00
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:
parent
560bbf0a9c
commit
11cecf7f22
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue