summaryrefslogtreecommitdiff
path: root/x11/kdelibs2/files/patch-kdoctools::xml2man.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'x11/kdelibs2/files/patch-kdoctools::xml2man.cpp')
-rw-r--r--x11/kdelibs2/files/patch-kdoctools::xml2man.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/x11/kdelibs2/files/patch-kdoctools::xml2man.cpp b/x11/kdelibs2/files/patch-kdoctools::xml2man.cpp
new file mode 100644
index 000000000000..fb020b58532c
--- /dev/null
+++ b/x11/kdelibs2/files/patch-kdoctools::xml2man.cpp
@@ -0,0 +1,13 @@
+--- kdoctools/xml2man.cpp Sat Jul 28 23:55:05 2001
++++ kdoctools/xml2man.cpp.new Wed Aug 29 18:10:54 2001
+@@ -63,9 +63,7 @@
+ QString pat = args->arg( 0 );
+ QFile xmlFile( pat );
+ xmlFile.open(IO_ReadOnly);
+- QCString contents;
+- contents.assign(xmlFile.readAll());
+- contents.truncate(xmlFile.size());
++ QCString contents(xmlFile.radAll(), xmlFile.size() + 1);
+ xmlFile.close();
+
+ contents.replace( QRegExp( "<!--[^-]*-->" ), "" );