summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/htags.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htags.cpp b/src/htags.cpp
index 77b1f8d..7f5870d 100644
--- a/src/htags.cpp
+++ b/src/htags.cpp
@@ -128,7 +128,7 @@ bool Htags::loadFilemap(const QCString &htmlDir)
int len;
while ((len=f.readLine(line.rawData(),maxlen))>0)
{
- line.resize(len+1);
+ line.at(len)='\0';
//printf("Read line: %s",line.data());
int sep = line.find('\t');
if (sep!=-1)