aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-06-03 06:57:31 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-06-03 06:57:31 +0800
commit31642359471574aad4a8427a18692d2558c91c5c (patch)
tree5444753f00af1c370132db852c86d831b4b8d53a /camel/camel-mime-utils.c
parent1dd2867a79778abf8a91b4b5f9ffeb643f217862 (diff)
downloadgsoc2013-evolution-31642359471574aad4a8427a18692d2558c91c5c.tar
gsoc2013-evolution-31642359471574aad4a8427a18692d2558c91c5c.tar.gz
gsoc2013-evolution-31642359471574aad4a8427a18692d2558c91c5c.tar.bz2
gsoc2013-evolution-31642359471574aad4a8427a18692d2558c91c5c.tar.lz
gsoc2013-evolution-31642359471574aad4a8427a18692d2558c91c5c.tar.xz
gsoc2013-evolution-31642359471574aad4a8427a18692d2558c91c5c.tar.zst
gsoc2013-evolution-31642359471574aad4a8427a18692d2558c91c5c.zip
Ick, damn signs! Fix a bug with sign extended bytes.
2000-06-02 Not Zed <NotZed@HelixCode.com> * camel-mime-utils.c (base64_encode_step): Ick, damn signs! Fix a bug with sign extended bytes. * camel-mime-filter-smtp.c (filter): Changed layout/logic slightly (to match From filter) svn path=/trunk/; revision=3408
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index c893c10050..ae4b0820b8 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -298,9 +298,9 @@ base64_encode_step(unsigned char *in, int len, unsigned char *out, int *state, i
already = *state;
switch (((char *)save)[0]) {
- case 1: c1 = ((char *)save)[1]; goto skip1;
- case 2: c1 = ((char *)save)[1];
- c2 = ((char *)save)[2]; goto skip2;
+ case 1: c1 = ((unsigned char *)save)[1]; goto skip1;
+ case 2: c1 = ((unsigned char *)save)[1];
+ c2 = ((unsigned char *)save)[2]; goto skip2;
}
/* yes, we jump into the loop, no i'm not going to change it, its beautiful! */