summaryrefslogtreecommitdiffstats
path: root/src/configimpl.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/configimpl.l')
-rw-r--r--src/configimpl.l4
1 files changed, 2 insertions, 2 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);