🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #418

unofficial patch to "mp"

#418
From: Rainer Klute
Date: Wed, 05 Sep 1990 10:52
42 lines
2412 bytes
Here is an unofficial patch to the last version of "mp". "Mp" broke with a
segmentation fault when printing a mail without a subject.

*** header.c.orig	Thu Aug 30 08:44:12 1990
--- header.c	Wed Sep  5 12:46:29 1990
***************
*** 196,207 ****
        if (from_)           boldshow(FROM_HDR,       from_) ;
        if (from)            mixedshow(FROMHDR,       from) ;
        if (apparently_from) mixedshow(APP_FROMHDR,   apparently_from) ;
!       if (to[0])           show_mult_hdr(TOHDR,     to) ;
        if (apparently_to)   mixedshow(APP_TOHDR,     apparently_to) ;
!       if (cc[0])           show_mult_hdr(CCHDR,     cc) ;
        if (reply_to)        mixedshow(REPLYHDR,      reply_to) ;
        if (newsgroups)      mixedshow(NEWSGROUPSHDR, newsgroups) ;
!       if (subject[0])      mixedshow(SUBJECTHDR,    subject) ;
        if (date)            mixedshow(DATEHDR,       date) ;
      }
  }
--- 196,210 ----
        if (from_)           boldshow(FROM_HDR,       from_) ;
        if (from)            mixedshow(FROMHDR,       from) ;
        if (apparently_from) mixedshow(APP_FROMHDR,   apparently_from) ;
!       if (to)
!          if (to[0])        show_mult_hdr(TOHDR,     to) ;
        if (apparently_to)   mixedshow(APP_TOHDR,     apparently_to) ;
!       if (cc)
!          if (cc[0])        show_mult_hdr(CCHDR,     cc) ;
        if (reply_to)        mixedshow(REPLYHDR,      reply_to) ;
        if (newsgroups)      mixedshow(NEWSGROUPSHDR, newsgroups) ;
!       if (subject)
!          if (subject[0])   mixedshow(SUBJECTHDR,    subject) ;
        if (date)            mixedshow(DATEHDR,       date) ;
      }
  }


--
  Dipl.-Inform. Rainer Klute      klute@unido.informatik.uni-dortmund.de
  Univ. Dortmund, IRB             klute@unido.uucp, klute@unido.bitnet
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-4600 Dortmund 50        |\|\    Fax : +49 231 755-2386
Technical Details
Message-ID: <1990Sep5.125211@heike.informatik.uni-dortmund.de>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!laura!heike!klute

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!laura!heike!klute
From: klute@heike.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: comp.sources.bugs
Subject: unofficial patch to "mp"
Message-ID: <1990Sep5.125211@heike.informatik.uni-dortmund.de>
Date: 5 Sep 90 10:52:11 GMT
Sender: news@laura.UUCP
Reply-To: klute@heike.informatik.uni-dortmund.de (Rainer Klute)
Organization: University of Dortmund, FRG
Lines: 42