Skip to content

Commit

Permalink
Fixed regression due to buffer resizing while generating RTF.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Jan 3, 2015
1 parent 088896f commit a1f2872
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/rtfgen.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit a1f2872

Please sign in to comment.