From 76976e56a20f1d1329786e59d912108129962c65 Mon Sep 17 00:00:00 2001 From: Zezula Ladislav Date: Mon, 7 Aug 2017 08:43:37 +0200 Subject: + Space and tab can both be part of the file name --- src/SFileListFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SFileListFile.cpp') 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 -- cgit v1.2.3