From 2e97729c2196fa6ecbb4928734781c0e688219ab Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 26 Mar 2008 10:12:12 +0000 Subject: - (internal) moving more bbs-independent code to utility library. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4023 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- innbbsd/str_decode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'innbbsd/str_decode.c') diff --git a/innbbsd/str_decode.c b/innbbsd/str_decode.c index 72a1f225..7a58439d 100644 --- a/innbbsd/str_decode.c +++ b/innbbsd/str_decode.c @@ -179,7 +179,7 @@ str_iconv( } /* Start translation */ while (srclen > 0 && dstlen > 0) { - iconv_ret = iconv(iconv_descriptor, (const char **)&src, &srclen, + iconv_ret = iconv(iconv_descriptor, &src, &srclen, &dst, &dstlen); if (iconv_ret != 0) { switch (errno) { @@ -260,7 +260,7 @@ str_decode_M3(unsigned char *str) if (*tmp && tmp[1] && tmp[2] == '?') { /* Thor: *tmp == '?' */ #ifdef USE_ICONV int i = mmdecode(tmp + 3, tmp[1], dst1); - i = str_iconv(charset, "big5", dst1, i, dst, + i = str_iconv((char*)charset, "big5", (char*)dst1, i, (char*)dst, sizeof(buf) - ((int)(dst - buf))); #else int i = mmdecode(tmp + 3, tmp[1], dst); @@ -287,5 +287,5 @@ str_decode_M3(unsigned char *str) } } *dst = 0; - strcpy(str, buf); + strcpy((char*)str, (char*)buf); } -- cgit v1.2.3