From 9cd6c9b0561cf1405e956ebcb3b157cf819573fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Wed, 14 Feb 2007 21:02:05 +0000 Subject: [PATCH] * tell what we did to the debs * fixed bug in range checking in the qp-decoder --- citadel/debian/changelog | 6 ++++++ citadel/mime_parser.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/citadel/debian/changelog b/citadel/debian/changelog index 34322f0ab..53a271e05 100644 --- a/citadel/debian/changelog +++ b/citadel/debian/changelog @@ -1,3 +1,9 @@ +citadel (7.03-6) unstable; urgency=high + + * fixup in quoted printable decoder + + -- Wilfried Goesgens Wed, 07 Feb 2007 00:12:00 +0100 + citadel (7.03-5) unstable; urgency=low * fixed user create bug diff --git a/citadel/mime_parser.c b/citadel/mime_parser.c index deb06aeed..c6415f34b 100644 --- a/citadel/mime_parser.c +++ b/citadel/mime_parser.c @@ -74,7 +74,7 @@ int CtdlDecodeQuotedPrintable(char *decoded, char *encoded, int sourcelen) { decoded[0] = 0; if (sourcelen >0) decoded[0] = encoded[0]; - while (destpos <= sourcelen){ + while (sourcepos <= sourcelen){ check = &decoded[destpos]; decoded[destpos] = encoded[sourcepos]; if ((ignore_last == 0) && (decoded[destpos-1] == '=')) -- 2.30.2