Permalink
Browse files

Fixed regression due to buffer resizing while generating RTF.

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Jan 3, 2015
1 parent 088896f commit a1f2872ef098cfcc526002b9c9d533da6f2775b5
Showing with 0 additions and 2 deletions.
  1. +0 −2 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)
{

0 comments on commit a1f2872

Please sign in to comment.