From 40d87c40019d55adf47e1e8ccf766a9d47eb1f79 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 10 Aug 2020 20:58:04 +0200 Subject: issue #7951: Doxywizard 1.8.19 (Windows): Source code directory seems to be ignored --- src/configimpl.l | 4 ++-- src/util.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/configimpl.l b/src/configimpl.l index 25fa78b..ed23a12 100644 --- a/src/configimpl.l +++ b/src/configimpl.l @@ -1189,13 +1189,13 @@ static QCString configFileToString(const char *name) if (fileOpened) { const int bSize=4096; - QCString contents(bSize); + QCString contents(bSize+1); int totalSize=0; int size; while ((size=f.readBlock(contents.rawData()+totalSize,bSize))==bSize) { totalSize+=bSize; - contents.resize(totalSize+bSize); + contents.resize(totalSize+bSize+1); } totalSize+=size+2; contents.resize(totalSize); diff --git a/src/util.cpp b/src/util.cpp index 3075d1b..2c7af7b 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -2503,13 +2503,13 @@ QCString fileToString(const char *name,bool filter,bool isSourceCode) if (fileOpened) { const int bSize=4096; - QCString contents(bSize); + QCString contents(bSize+1); int totalSize=0; int size; while ((size=f.readBlock(contents.rawData()+totalSize,bSize))==bSize) { totalSize+=bSize; - contents.resize(totalSize+bSize); + contents.resize(totalSize+bSize+1); } totalSize = filterCRLF(contents.rawData(),totalSize+size)+2; contents.resize(totalSize); -- cgit v0.12