gmime r1561 - in trunk: . gmime
- From: fejj svn gnome org
- To: svn-commits-list gnome org
- Subject: gmime r1561 - in trunk: . gmime
- Date: Mon, 6 Apr 2009 01:40:22 +0000 (UTC)
Author: fejj
Date: Mon Apr 6 01:40:22 2009
New Revision: 1561
URL: http://svn.gnome.org/viewvc/gmime?rev=1561&view=rev
Log:
2009-04-05 Jeffrey Stedfast <fejj novell com>
* gmime/gmime-encodings.c (g_mime_encoding_uudecode_step): Fixed a
bug wrt updating uulen when the data isn't an exact multiple of 3.
Modified:
trunk/ChangeLog
trunk/gmime/gmime-encodings.c
Modified: trunk/gmime/gmime-encodings.c
==============================================================================
--- trunk/gmime/gmime-encodings.c (original)
+++ trunk/gmime/gmime-encodings.c Mon Apr 6 01:40:22 2009
@@ -824,18 +824,20 @@
*outptr++ = gmime_uu_rank[b0] << 2 | gmime_uu_rank[b1] >> 4;
*outptr++ = gmime_uu_rank[b1] << 4 | gmime_uu_rank[b2] >> 2;
*outptr++ = gmime_uu_rank[b2] << 6 | gmime_uu_rank[b3];
+ uulen -= 3;
} else {
if (uulen >= 1) {
*outptr++ = gmime_uu_rank[b0] << 2 | gmime_uu_rank[b1] >> 4;
+ uulen--;
}
if (uulen >= 2) {
*outptr++ = gmime_uu_rank[b1] << 4 | gmime_uu_rank[b2] >> 2;
+ uulen--;
}
}
i = 0;
saved = 0;
- uulen -= 3;
}
} else {
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]