From c467d07a94176d5972c683df37ce186ab8440e35 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 23 Apr 2001 00:20:19 +0000 Subject: Oops, don't use the return value of iconv() as a string length, it only 2001-04-22 Jeffrey Stedfast * 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 --- camel/camel-pgp-context.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'camel/camel-pgp-context.c') 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; -- cgit v1.2.3