diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-07-20 07:11:13 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-07-20 07:11:13 +0800 |
commit | 49e81a0bda0d8914a4785d73e366b680186e9406 (patch) | |
tree | f2d637e244fdc12eb9b822b0586140c879b85e71 /camel/camel-sasl-digest-md5.c | |
parent | d20ac81f624dd26da52a921add73cb96f96cddbb (diff) | |
download | gsoc2013-evolution-49e81a0bda0d8914a4785d73e366b680186e9406.tar.gz gsoc2013-evolution-49e81a0bda0d8914a4785d73e366b680186e9406.tar.zst gsoc2013-evolution-49e81a0bda0d8914a4785d73e366b680186e9406.zip |
Modified to treat the return value from camel_charset_locale_name() as a
2001-07-19 Jeffrey Stedfast <fejj@ximian.com>
* camel-pgp-context.c (pgp_verify): Modified to treat the return
value from camel_charset_locale_name() as a const char*.
* camel-sasl-digest-md5.c (digest_response): Modified to treat the
return value from camel_charset_locale_name() as a const char*.
* camel-charset-map.c (camel_charset_locale_name): Modify to
return const char* by returning the static locale_charset which is
created inside of camel_charset_map_init().
(camel_charset_map_init): Find the locale charset here and set the
static variable.
svn path=/trunk/; revision=11245
Diffstat (limited to 'camel/camel-sasl-digest-md5.c')
-rw-r--r-- | camel/camel-sasl-digest-md5.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/camel-sasl-digest-md5.c b/camel/camel-sasl-digest-md5.c index 51b2026abc..106414fa2c 100644 --- a/camel/camel-sasl-digest-md5.c +++ b/camel/camel-sasl-digest-md5.c @@ -692,17 +692,17 @@ digest_response (struct _DigestResponse *resp) g_byte_array_append (buffer, "username=\"", 10); if (resp->charset) { /* Encode the username using the requested charset */ - char *charset, *username, *outbuf; + char *username, *outbuf; + const char *charset; size_t len, outlen; const char *buf; iconv_t cd; charset = camel_charset_locale_name (); if (!charset) - charset = g_strdup ("iso-8859-1"); + charset = "iso-8859-1"; cd = iconv_open (resp->charset, charset); - g_free (charset); len = strlen (resp->username); outlen = 2 * len; /* plenty of space */ |