[comp.bugs.4bsd] scan

konijn@ace.UUCP (04/14/87)

Index: /usr/src/new/mh/uip/scan.c

Description:
	The scan(1) command, part of MH-6.4, dumps core on unreadable
	messages.  At least, on our System V mc680x0 box it does.

Repeat-By:
	Make a message in a mailbox unreadable and scan that mailbox.

Fix:
	Don't free what wasn't allocated in the first place.

*** /tmp/1	Tue Apr 14 18:18:06 1987
--- scan.c	Tue Apr 14 18:06:43 1987
***************
*** 216,222 ****
  		    admonish (cp, "unable to open message");
  		else
  		    printf ("%*d  unreadable\n", DMAXFOLDER, msgnum);
- 		free (cp);
  		continue;
  	    }
  
--- 216,221 ----

---------
Erik van Konijnenburg,	<konijn@ace.nl>, ...!mcvax!ace!konijn,
ACE Associated Computer Experts bv, Amsterdam, the Netherlands