diff options
author | Zezula Ladislav <ladislav.zezula@avast.com> | 2017-08-07 08:43:37 +0200 |
---|---|---|
committer | Zezula Ladislav <ladislav.zezula@avast.com> | 2017-08-07 08:43:37 +0200 |
commit | 76976e56a20f1d1329786e59d912108129962c65 (patch) | |
tree | fdd8b82f165b9bb8cf9928ffb2169fbf38250d2c /src | |
parent | 80021e4a6704d1854a37aa183c62323ff1cf9011 (diff) |
+ Space and tab can both be part of the file name
Diffstat (limited to 'src')
-rw-r--r-- | src/SFileListFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SFileListFile.cpp b/src/SFileListFile.cpp index 3918bd9..00fa9fa 100644 --- a/src/SFileListFile.cpp +++ b/src/SFileListFile.cpp @@ -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
|