🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Olly Betts Fri, 09 Aug 1996 00:00
slrn: patch for improved base64 decoding
#24814
Author: Olly Betts
Date: Fri, 09 Aug 1996 00:00
26 lines
1466 bytes
My first base64 decode using slrn resulted in a file called 'unknown-64.0'.
Somewhat unimpressed, I patched uudecode.c to check for a "name" parameter
in "Content-Type:" (in addition to the exisiting behaviour, which was to
look for a "filename" parameter in "Content-Disposition:").

Here's the patch:

--- uudecode.c.base	Tue Jun 25 10:43:27 1996
+++ uudecode.c	Fri Aug  9 10:47:22 1996
@@ -456,6 +456,8 @@
 
 static int parse_content_type (char *p, Mime_Message_Partial_Type *mpt)
 {
+   (void) parse_name_eqs_string (p, "name", Base64_Filename, sizeof (Base64_Filename));
+   
    if ((NULL == (p = skip_header_string (p, "message")))
        || (NULL == (p = skip_header_string (p, "/")))
        || (NULL == (p = skip_header_string (p, "partial")))

Olly
-- 
cool wet grass  cool wet grass  cool wet grass  cool wet grass  cool wet grass


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads