aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZezula Ladislav <ladislav.zezula@avast.com>2017-08-07 08:43:37 +0200
committerZezula Ladislav <ladislav.zezula@avast.com>2017-08-07 08:43:37 +0200
commit76976e56a20f1d1329786e59d912108129962c65 (patch)
treefdd8b82f165b9bb8cf9928ffb2169fbf38250d2c /src
parent80021e4a6704d1854a37aa183c62323ff1cf9011 (diff)
+ Space and tab can both be part of the file name
Diffstat (limited to 'src')
-rw-r--r--src/SFileListFile.cpp4
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