File htmldoc-fortify.diff of Package htmldoc

--- ./htmldoc/ps-pdf.cxx.orig	2010-02-15 11:13:11.000000000 +0100
+++ ./htmldoc/ps-pdf.cxx	2010-02-15 11:17:02.000000000 +0100
@@ -8615,7 +8615,7 @@
           return (NULL);
         }
 	// Safe because buffer is allocated...
-        strcpy((char *)r->data.text.buffer, (char *)data);
+        memcpy((char *)r->data.text.buffer, data, strlen ((char *)data) + 1);
         get_color(_htmlTextColor, r->data.text.rgb);
         break;
     case RENDER_IMAGE :