diff options
-rw-r--r-- | camel/ChangeLog | 7 | ||||
-rw-r--r-- | camel/camel-mime-utils.c | 4 | ||||
-rw-r--r-- | camel/camel-mime-utils.h | 3 |
3 files changed, 11 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 8d41999209..bf6eaf7bdf 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2000-07-05 Jeffrey Stedfast <fejj@helixcode.com> + + * camel-mime-utils.h: Added prototype for uudecode_step + + * camel-mime-utils.c (uudecode_step): Cleaned up some junk that + should have been cleaned up when debugging printf's were taken out. + 2000-07-05 Ettore Perazzoli <ettore@helixcode.com> * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_sync): diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index e30c24b87d..f2349b7e92 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -2,6 +2,7 @@ * Copyright (C) 2000 Helix Code Inc. * * Authors: Michael Zucchi <notzed@helixcode.com> + * Jeffrey Stedfast <fejj@helixcode.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public License @@ -481,11 +482,8 @@ uudecode_step (unsigned char *in, int len, unsigned char *out, int *state, guint *outptr++ = CAMEL_UUDECODE_CHAR (b1) << 4 | CAMEL_UUDECODE_CHAR (b2) >> 2; *outptr++ = CAMEL_UUDECODE_CHAR (b2) << 6 | CAMEL_UUDECODE_CHAR (b3); } else { - int j = 0; - if (*uulen >= 1) { *outptr++ = CAMEL_UUDECODE_CHAR (b0) << 2 | CAMEL_UUDECODE_CHAR (b1) >> 4; - j++; } if (*uulen >= 2) { *outptr++ = CAMEL_UUDECODE_CHAR (b1) << 4 | CAMEL_UUDECODE_CHAR (b2) >> 2; diff --git a/camel/camel-mime-utils.h b/camel/camel-mime-utils.h index 5f715243d0..8f00eb0b9d 100644 --- a/camel/camel-mime-utils.h +++ b/camel/camel-mime-utils.h @@ -2,6 +2,7 @@ * Copyright (C) 2000 Helix Code Inc. * * Authors: Michael Zucchi <notzed@helixcode.com> + * Jeffrey Stedfast <fejj@helixcode.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public License @@ -158,6 +159,8 @@ int base64_decode_step(unsigned char *in, int len, unsigned char *out, int *stat int base64_encode_step(unsigned char *in, int len, unsigned char *out, int *state, int *save); int base64_encode_close(unsigned char *in, int inlen, unsigned char *out, int *state, int *save); +int uudecode_step (unsigned char *in, int len, unsigned char *out, int *state, guint32 *save, char *uulen); + int quoted_decode_step(unsigned char *in, int len, unsigned char *out, int *savestate, int *saveme); int quoted_encode_step(unsigned char *in, int len, unsigned char *out, int *state, int *save); |