diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-02-07 04:57:17 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-02-07 04:57:17 +0800 |
commit | f8f9d8aadbad0b97409c5296bc8f0a5330dbf362 (patch) | |
tree | c88e73c9607891dcc3c09b5555fa698cc84ba854 /camel/camel-mime-utils.c | |
parent | 228aaaf7abccfe1fa359f76f15ebf0d0ceb19a23 (diff) | |
download | gsoc2013-evolution-f8f9d8aadbad0b97409c5296bc8f0a5330dbf362.tar.gz gsoc2013-evolution-f8f9d8aadbad0b97409c5296bc8f0a5330dbf362.tar.zst gsoc2013-evolution-f8f9d8aadbad0b97409c5296bc8f0a5330dbf362.zip |
Made these pass char ** as the second parameter to iconv.
2001-02-06 Christopher James Lahey <clahey@ximian.com>
* camel-mime-filter-charset.c (complete, filter),
camel-mime-utils.c (rfc2047_decode_word, rfc2047_encode_word):
Made these pass char ** as the second parameter to iconv.
svn path=/trunk/; revision=8022
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 7b63baae14..ab41258582 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -925,7 +925,7 @@ rfc2047_decode_word(const char *in, int len) /* TODO: Should this cache iconv converters? */ ic = iconv_open("UTF-8", encname); if (ic != (iconv_t)-1) { - ret = iconv(ic, (const char **)&inbuf, &inlen, &outbuf, &outlen); + ret = iconv(ic, &inbuf, &inlen, &outbuf, &outlen); if (ret>=0) { iconv(ic, NULL, 0, &outbuf, &outlen); *outbuf = 0; @@ -1109,7 +1109,7 @@ rfc2047_encode_word(GString *outstring, const char *in, int len, const char *typ iconv_t ic = (iconv_t *)-1; char *buffer, *out, *ascii; size_t inlen, outlen, enclen, bufflen; - const char *inptr, *p; + char *inptr, *p; int first = 1; d(printf("Converting [%d] '%.*s' to %s\n", len, len, in, type)); @@ -1118,7 +1118,7 @@ rfc2047_encode_word(GString *outstring, const char *in, int len, const char *typ bufflen = len*6+16; buffer = alloca(bufflen); inlen = len; - inptr = in; + inptr = (char *) in; ascii = alloca(bufflen); |