summaryrefslogtreecommitdiff
path: root/x11-wm/icewm/files/patch-src_ylocale.cc
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2006-04-20 05:42:42 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2006-04-20 05:42:42 +0000
commit7661f5c4e89774773bacab373e6dd7f9e635cc96 (patch)
treec8e7269c94ca404a5705967eaccda73488b70d4f /x11-wm/icewm/files/patch-src_ylocale.cc
parent- Fix build with gcc 3.x (FreeBSD 5.0+) (diff)
- Update to version 1.2.26
PR: ports/96012 Submitted by: Ports Fury
Diffstat (limited to 'x11-wm/icewm/files/patch-src_ylocale.cc')
-rw-r--r--x11-wm/icewm/files/patch-src_ylocale.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/x11-wm/icewm/files/patch-src_ylocale.cc b/x11-wm/icewm/files/patch-src_ylocale.cc
index 0ca66acf6c4d..e1b29970890f 100644
--- a/x11-wm/icewm/files/patch-src_ylocale.cc
+++ b/x11-wm/icewm/files/patch-src_ylocale.cc
@@ -1,7 +1,7 @@
---- src/ylocale.cc.orig Wed Apr 21 05:06:34 2004
-+++ src/ylocale.cc Sun Apr 25 19:40:07 2004
-@@ -149,7 +149,8 @@
- return NULL;
+--- src/ylocale.cc.orig Mon Apr 17 01:12:31 2006
++++ src/ylocale.cc Mon Apr 17 16:19:46 2006
+@@ -149,10 +149,11 @@
+ return NULL;
YUChar * uStr(new YUChar[lLen + 1]);
- char * inbuf((char *) lStr), * outbuf((char *) uStr);
@@ -9,4 +9,8 @@
+ char * outbuf((char *) uStr);
size_t inlen(lLen), outlen(4 * lLen);
- if (0 > (int) iconv(instance->toUnicode, &inbuf, &inlen, &outbuf, &outlen))
+- if (0 > (int) iconv(instance->toUnicode, const_cast<char **>(&inbuf), &inlen, &outbuf, &outlen))
++ if (0 > (int) iconv(instance->toUnicode, &inbuf, &inlen, &outbuf, &outlen))
+ warn(_("Invalid multibyte string \"%s\": %s"), lStr, strerror(errno));
+
+ *((YUChar *) outbuf) = 0;