Fix timestamp extraction with wildcards (fixes #605)

in CFileCollection. Previously it included the _ character.
This commit is contained in:
def 2019-01-11 11:37:43 +01:00
parent 8c4a26fa63
commit 6e9aa68149

View file

@ -197,7 +197,7 @@ int64 CFileCollection::GetTimestamp(const char *pFilename)
if(m_aFileDesc[0] == '\0')
{
int FilenameLength = str_length(pFilename);
return ExtractTimestamp(pFilename+FilenameLength-m_FileExtLength-TIMESTAMP_LENGTH);
return ExtractTimestamp(pFilename+FilenameLength-m_FileExtLength-TIMESTAMP_LENGTH+1);
}
else
{