diff options
Diffstat (limited to 'camel/camel-pgp-context.c')
-rw-r--r-- | camel/camel-pgp-context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c index c2e361ce40..c19756a135 100644 --- a/camel/camel-pgp-context.c +++ b/camel/camel-pgp-context.c @@ -992,7 +992,7 @@ pgp_verify (CamelCipherContext *ctx, CamelStream *istream, inptr = diagnostics; inend = inptr + inlen; - while (inptr && inptr < inend) { + while (inptr && inptr < inend && g_unichar_validate (g_utf8_get_char (inptr))) { *outbuf++ = g_utf8_get_char (inptr) & 0xff; inptr = g_utf8_next_char (inptr); } |