diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-27 13:24:09 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-27 13:24:09 +0800 |
commit | da559d7cfe290ad1215a8f8192725b392d8b5e25 (patch) | |
tree | b318a6d32ac4d715e526990ac4d552111eded840 /innbbsd/str_decode.c | |
parent | 221f141a576f2d269d35f07f63415f7a5f6198b5 (diff) | |
download | pttbbs-da559d7cfe290ad1215a8f8192725b392d8b5e25.tar pttbbs-da559d7cfe290ad1215a8f8192725b392d8b5e25.tar.gz pttbbs-da559d7cfe290ad1215a8f8192725b392d8b5e25.tar.bz2 pttbbs-da559d7cfe290ad1215a8f8192725b392d8b5e25.tar.lz pttbbs-da559d7cfe290ad1215a8f8192725b392d8b5e25.tar.xz pttbbs-da559d7cfe290ad1215a8f8192725b392d8b5e25.tar.zst pttbbs-da559d7cfe290ad1215a8f8192725b392d8b5e25.zip |
fix iconv
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2437 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/str_decode.c')
-rw-r--r-- | innbbsd/str_decode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/innbbsd/str_decode.c b/innbbsd/str_decode.c index 38851527..4da40bcf 100644 --- a/innbbsd/str_decode.c +++ b/innbbsd/str_decode.c @@ -145,14 +145,14 @@ mmdecode(unsigned char *src, unsigned char encode, unsigned char *dst) } #ifdef USE_ICONV -int +size_t str_iconv( const char *fromcode, /* charset of source string */ const char *tocode, /* charset of destination string */ char *src, /* source string */ - int srclen, /* source string length */ + size_t srclen, /* source string length */ char *dst, /* destination string */ - int dstlen) + size_t dstlen) { /* destination string length */ /* * 這個函式會將一個字串 (src) 從 charset=fromcode 轉成 charset=tocode, @@ -161,7 +161,7 @@ str_iconv( * 或是 src 中有未完整的 byte, 都會砍掉. */ iconv_t iconv_descriptor; - int iconv_ret, dstlen_old; + size_t iconv_ret, dstlen_old; dstlen--; /* keep space for '\0' */ |