freebsd-ports/x11/kdelibs3/files/patch-kdoctools::xslt.cpp
Will Andrews d3762340a3 Fix problem with meinproc coredumping on -CURRENT. Basically what the
problem is is that there are a few sloppy pieces of code in xslt.cpp.
Bump PORTREVISION to account for recent changes (I had intended to do this
much earlier, but wanted to include these patches first, and there was
a problem getting them together correctly).

Submitted by:	mi
Tested by:	dwcjr, petef
2001-08-29 01:53:47 +00:00

14 lines
486 B
C++

--- kdoctools/xslt.cpp Mon Jul 30 17:11:20 2001
+++ kdoctools/xslt.cpp.new Tue Aug 28 20:09:34 2001
@@ -86,9 +86,7 @@
INFO(i18n("Reading document"));
QFile xmlFile( pat );
xmlFile.open(IO_ReadOnly);
- QCString contents;
- contents.assign(xmlFile.readAll());
- contents.truncate(xmlFile.size());
+ QCString contents(xmlFile.readAll(), xmlFile.size() + 1);
xmlFile.close();
/* if (contents.left(5) != "<?xml") {
fprintf(stderr, "xmlizer\n");