diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-08-10 18:58:04 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-08-10 18:58:04 (GMT) |
commit | 40d87c40019d55adf47e1e8ccf766a9d47eb1f79 (patch) | |
tree | 60b44b661e9fb4dc50be01bd9861c69607d3cf10 /src/util.cpp | |
parent | 64f961e6270e055827f448d41a823e04b7fba65f (diff) | |
download | Doxygen-40d87c40019d55adf47e1e8ccf766a9d47eb1f79.zip Doxygen-40d87c40019d55adf47e1e8ccf766a9d47eb1f79.tar.gz Doxygen-40d87c40019d55adf47e1e8ccf766a9d47eb1f79.tar.bz2 |
issue #7951: Doxywizard 1.8.19 (Windows): Source code directory seems to be ignored
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |