diff options
Diffstat (limited to 'camel/camel-pgp-context.c')
-rw-r--r-- | camel/camel-pgp-context.c | 5 |
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; |