aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-pgp-context.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-04-23 08:20:19 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-04-23 08:20:19 +0800
commitc467d07a94176d5972c683df37ce186ab8440e35 (patch)
tree9903db4ff1bbd96f86440cbfd3555e5ba3416245 /camel/camel-pgp-context.c
parent113cb67b3312b1c19c287d566ef2a7c8a06af3a2 (diff)
downloadgsoc2013-evolution-c467d07a94176d5972c683df37ce186ab8440e35.tar.gz
gsoc2013-evolution-c467d07a94176d5972c683df37ce186ab8440e35.tar.zst
gsoc2013-evolution-c467d07a94176d5972c683df37ce186ab8440e35.zip
Oops, don't use the return value of iconv() as a string length, it only
2001-04-22 Jeffrey Stedfast <fejj@ximian.com> * camel-pgp-context.c (pgp_verify): Oops, don't use the return value of iconv() as a string length, it only tells us the number of non-reversable character conversions. This fixes it so we actually see the gpg output in the message viewer. svn path=/trunk/; revision=9495
Diffstat (limited to 'camel/camel-pgp-context.c')
-rw-r--r--camel/camel-pgp-context.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c
index cd3a7bee18..f69efde91f 100644
--- a/camel/camel-pgp-context.c
+++ b/camel/camel-pgp-context.c
@@ -984,13 +984,12 @@ pgp_verify (CamelCipherContext *ctx, CamelStream *istream,
g_free (locale);
if (cd != (iconv_t) -1) {
const char *inbuf;
- size_t len;
inbuf = diagnostics;
- len = iconv (cd, &inbuf, &inlen, &outbuf, &outlen);
+ iconv (cd, &inbuf, &inlen, &outbuf, &outlen);
iconv_close (cd);
- desc[len] = '\0';
+ *outbuf = '\0';
} else {
const char *inptr, *inend;
unicode_char_t c;