From a1f2872ef098cfcc526002b9c9d533da6f2775b5 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 3 Jan 2015 14:46:35 +0100 Subject: Fixed regression due to buffer resizing while generating RTF. --- src/rtfgen.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/rtfgen.cpp b/src/rtfgen.cpp index 2a6fd07..0c27089 100644 --- a/src/rtfgen.cpp +++ b/src/rtfgen.cpp @@ -2370,14 +2370,12 @@ static bool preProcessFile(QDir &d,QCString &infName, FTextStream &t, bool bIncl err("read error in %s before end of RTF header!\n",infName.data()); return FALSE; } - lineBuf.resize(len+1); if (bIncludeHeader) encodeForOutput(t,lineBuf.data()); } while (lineBuf.find("\\comment begin body")==-1); while ((len=f.readLine(lineBuf.rawData(),maxLineLength))!=-1) { - lineBuf.resize(len+1); int pos; if ((pos=lineBuf.find("INCLUDETEXT"))!=-1) { -- cgit v0.12