Article View: news.software.readers
Article #46608Re: Slrn and B-encoded headers?
From: Hubert Figuiere
Date: Thu, 18 Feb 1999 00:00
Date: Thu, 18 Feb 1999 00:00
38 lines
1785 bytes
1785 bytes
I just posted:
>(by rereading this afterwards, I find that I can do better for
>this code... I'll redo the patch I think.)
Here is the new patch :-)
<<<BEGIN
--- ../../slrn/src/mime.c Thu Nov 5 19:05:14 1998
+++ mime.c Thu Feb 18 14:19:28 1999
@@ -346,7 +347,13 @@
while (src + 3 < srcmax)
{
*dest++ = (BASE64(src[0]) << 2) | (BASE64(src[1]) >> 4);
+ if (src[2] == '=') {
+ break;
+ }
*dest++ = ((BASE64(src[1]) & 0xf) << 4) | (BASE64(src[2]) >> 2);
+ if (src[3] == '=') {
+ break;
+ }
*dest++ = ((BASE64(src[2]) & 0x3) << 6) | BASE64(src[3]);
src += 4;
}
<<<END
Far much cleaner now :=)
Hub
--
> Je souhaiterais essayer Internet Explorer 4.0 sous Linux.
> Il existe 2 versions: une sous HP/UX et une sous Solaris
> Laquelle dois je utiliser?
-+- MJM in Guide du linuxien pervers : "Choisir son environnement" -+-
Technical Details
Message-ID:
<slrn7co5h0.e0q.hfiguiere@dirkpitt.solsoft.fr>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn7cnskv.onr.hezu@tuuri.ling.helsinki.fi> <slrn7co4is.e0q.hfiguiere@dirkpitt.solsoft.fr>Show Full Headers
Complete Article Headers
Message-ID: <slrn7co5h0.e0q.hfiguiere@dirkpitt.solsoft.fr> Subject: Re: Slrn and B-encoded headers? Date: Thu, 18 Feb 1999 00:00:00 +0000 From: hfiguiere@teaser.fr (Hubert Figuiere) References: <slrn7cnskv.onr.hezu@tuuri.ling.helsinki.fi> <slrn7co4is.e0q.hfiguiere@dirkpitt.solsoft.fr> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 445686984 X-Complaints-To: usenet@itesec.hsc.fr X-Trace: itesec.hsc.fr 919344672 23427 192.70.106.209 (18 Feb 1999 13:31:12 GMT) Organization: none User-Agent: slrn/0.9.5.4noqp-ext[hub-PL4] (UNIX) Reply-To: hfiguiere@teaser.fr NNTP-Posting-Date: 18 Feb 1999 13:31:12 GMT Newsgroups: news.software.readers