mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-02-02 12:36:27 +01:00
+ Space and tab can both be part of the file name
This commit is contained in:
@@ -175,8 +175,8 @@ static char * ReadListFileLine(TListFileCache * pCache, size_t * PtrLength)
|
||||
LPBYTE pbLineEnd;
|
||||
LPBYTE pbExtraString = NULL;
|
||||
|
||||
// Skip newlines, spaces, tabs and another non-printable stuff
|
||||
while(pCache->pPos < pCache->pEnd && pCache->pPos[0] <= 0x20)
|
||||
// Skip newlines. Keep spaces and tabs, as they can be a legal part of the file name
|
||||
while(pCache->pPos < pCache->pEnd && (pCache->pPos[0] == 0x0A || pCache->pPos[0] == 0x0D))
|
||||
pCache->pPos++;
|
||||
|
||||
// Set the line begin and end
|
||||
|
||||
Reference in New Issue
Block a user