fix from inkscape svn
Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/inkscape/Makefile,v retrieving revision 1.5 diff -u -p -r1.5 Makefile --- Makefile 3 Oct 2008 11:17:17 -0000 1.5 +++ Makefile 2 Nov 2008 19:40:17 -0000 @@ -3,7 +3,7 @@ COMMENT= SVG vector drawing application DISTNAME= inkscape-0.46 -PKGNAME= ${DISTNAME}p3 +PKGNAME= ${DISTNAME}p4 CATEGORIES= graphics MAINTAINER= Benoit Chesneau <[EMAIL PROTECTED]> Index: patches/patch-src_extension_internal_pdfinput_pdf-parser_cpp =================================================================== RCS file: patches/patch-src_extension_internal_pdfinput_pdf-parser_cpp diff -N patches/patch-src_extension_internal_pdfinput_pdf-parser_cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_extension_internal_pdfinput_pdf-parser_cpp 2 Nov 2008 19:40:17 -0000 @@ -0,0 +1,30 @@ +$OpenBSD$ +--- src/extension/internal/pdfinput/pdf-parser.cpp.orig Sun Nov 2 21:27:57 2008 ++++ src/extension/internal/pdfinput/pdf-parser.cpp Sun Nov 2 21:30:50 2008 +@@ -2196,7 +2196,7 @@ void PdfParser::doShowText(GooString *s) { + int wMode; + double riseX, riseY; + CharCode code; +- Unicode u[8]; ++ Unicode *u = NULL; + double x, y, dx, dy, dx2, dy2, curX, curY, tdx, tdy, lineX, lineY; + double originX, originY, tOriginX, tOriginY; + double oldCTM[6], newCTM[6]; +@@ -2244,7 +2244,7 @@ void PdfParser::doShowText(GooString *s) { + len = s->getLength(); + while (len > 0) { + n = font->getNextChar(p, len, &code, +- u, (int)(sizeof(u) / sizeof(Unicode)), &uLen, ++ &u, &uLen, + &dx, &dy, &originX, &originY); + dx = dx * state->getFontSize() + state->getCharSpace(); + if (n == 1 && *p == ' ') { +@@ -2293,7 +2293,7 @@ void PdfParser::doShowText(GooString *s) { + len = s->getLength(); + while (len > 0) { + n = font->getNextChar(p, len, &code, +- u, (int)(sizeof(u) / sizeof(Unicode)), &uLen, ++ &u, &uLen, + &dx, &dy, &originX, &originY); + + if (wMode) {