aboutsummaryrefslogtreecommitdiffstats
path: root/camel
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
parent113cb67b3312b1c19c287d566ef2a7c8a06af3a2 (diff)
downloadgsoc2013-evolution-c467d07a94176d5972c683df37ce186ab8440e35.tar
gsoc2013-evolution-c467d07a94176d5972c683df37ce186ab8440e35.tar.gz
gsoc2013-evolution-c467d07a94176d5972c683df37ce186ab8440e35.tar.bz2
gsoc2013-evolution-c467d07a94176d5972c683df37ce186ab8440e35.tar.lz
gsoc2013-evolution-c467d07a94176d5972c683df37ce186ab8440e35.tar.xz
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')
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/camel-pgp-context.c5
-rw-r--r--camel/camel-smime-context.c1
3 files changed, 10 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 66e141ec61..19781f5c4b 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2001-04-23 Mikael Hallendal <micke@codefactory.se>
* providers/nntp/Makefile.am (INCLUDES):
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;
diff --git a/camel/camel-smime-context.c b/camel/camel-smime-context.c
index b1d9fb28d7..703a29b81c 100644
--- a/camel/camel-smime-context.c
+++ b/camel/camel-smime-context.c
@@ -32,6 +32,7 @@
#include <nss.h>
#include <cert.h>
#include <secpkcs7.h>
+#include <secmime.h>
#include <gtk/gtk.h> /* for _() macro */