<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">diff --git pdftoipe/xmloutputdev.cpp pdftoipe/xmloutputdev.cpp
index 291eb5f..17bac2a 100644
--- pdftoipe/xmloutputdev.cpp
+++ pdftoipe/xmloutputdev.cpp
@@ -149,15 +149,15 @@ void XmlOutputDev::stroke(GfxState *state)
   writeColor("&lt;path stroke=", rgb, 0);
   writePSFmt(" pen=\"%g\"", state-&gt;getTransformedLineWidth());
 
-  double *dash;
   double start;
-  int length, i;
+  std::vector&lt;double&gt; dash = state-&gt;getLineDash(&amp;start);
+  int length = dash.size();
+  int i;
 
-  state-&gt;getLineDash(&amp;dash, &amp;length, &amp;start);
   if (length) {
     writePS(" dash=\"[");
     for (i = 0; i &lt; length; ++i)
-      writePSFmt("%g%s", state-&gt;transformWidth(dash[i]), 
+      writePSFmt("%g%s", state-&gt;transformWidth(dash.at(i)),
 		 (i == length-1) ? "" : " ");
     writePSFmt("] %g\"", state-&gt;transformWidth(start));
   }
</pre></body></html>