summaryrefslogtreecommitdiff
path: root/textproc/xerces-c2/files/patch-aa
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2003-01-12 02:03:09 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2003-01-12 02:03:09 +0000
commitd3eccd2d9965db047f56662f33923e7d0398a9e1 (patch)
tree4f0538d4bba891e1134090bc71a3b3f749d64176 /textproc/xerces-c2/files/patch-aa
parentUpdate port: x11-wm/xfce (diff)
Fix building on sparc64 and alpha.
Thanks to Mikko Tyolajarvi for fixing and testing on sparc64. PR: 46636 Submitted by: Bjoern A. Zeeb <bzeeb+freebsdports@zabbadoz.net>
Diffstat (limited to '')
-rw-r--r--textproc/xerces-c2/files/patch-aa12
1 files changed, 12 insertions, 0 deletions
diff --git a/textproc/xerces-c2/files/patch-aa b/textproc/xerces-c2/files/patch-aa
new file mode 100644
index 000000000000..1e3aad521e00
--- /dev/null
+++ b/textproc/xerces-c2/files/patch-aa
@@ -0,0 +1,12 @@
+--- src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp.orig Tue Aug 27 09:24:38 2002
++++ src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp Sun Jan 12 01:44:04 2003
+@@ -1091,7 +1091,8 @@
+ // perform conversion
+ wLent *= uChSize();
+ char *ptr = retVal;
+- size_t rc = iconvTo(wideCharBuf, &wLent, &ptr, neededLen);
++ size_t tmpwLent = wLent;
++ size_t rc = iconvTo(wideCharBuf, &tmpwLent, &ptr, neededLen);
+ if (rc == (size_t)-1) {
+ if (wBufPtr)
+ delete [] wBufPtr;