diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-01-29 08:31:58 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-01-29 08:31:58 +0800 |
commit | aeb798c02882fb8198f9ecc948415be00db30b73 (patch) | |
tree | 17fdd1e0750b49bf0a0f94857a91c3a7ec3440d4 /camel/camel-mime-utils.c | |
parent | d5f73b0fdd59bfe77705bd344cf8e9ec2e64f804 (diff) | |
download | gsoc2013-evolution-aeb798c02882fb8198f9ecc948415be00db30b73.tar.gz gsoc2013-evolution-aeb798c02882fb8198f9ecc948415be00db30b73.tar.zst gsoc2013-evolution-aeb798c02882fb8198f9ecc948415be00db30b73.zip |
New function to decode an enhanced status code. (smtp_set_exception): Sets
2002-01-28 Jeffrey Stedfast <fejj@ximian.com>
* providers/smtp/camel-smtp-transport.c (smtp_decode_status_code):
New function to decode an enhanced status code.
(smtp_set_exception): Sets an exception based on the
Enhanced-Status-Code.
(esmtp_get_authtypes): Don't diplicate the key in the hash since
the key and value are the same.
(smtp_rcpt): Include the failed recipient in the error message to
be more helpful to the user.
* camel-mime-utils.c (hex_decode): Make sure to allocate enough
for the NUL byte.
svn path=/trunk/; revision=15500
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index ea60fc8a88..46ad1595b0 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -1840,9 +1840,9 @@ hex_decode (const char *in, size_t len) unsigned char *inptr, *outptr; char *outbuf; - outptr = outbuf = g_malloc (len); + outptr = outbuf = g_malloc (len + 1); - inptr = (guchar *) in; + inptr = (unsigned char *) in; while (inptr < inend) { if (*inptr == '%') { if (isxdigit (inptr[1]) && isxdigit (inptr[2])) { |