long from: lines break /bin/mail

stanonik at nprdc.arpa stanonik at nprdc.arpa
Thu Feb 19 07:06:29 AEST 1987


Description:
	Long from: lines cause /bin/mail to loop
Repeat-By:
	Wait for a message that has passed through a lot of relays;
	eg, <@host0, at host1, at host2,...:user at host>.  Info-vax seems
	to occasionally send one of these.
Fix:
	The buffer truename, intended to hold the from address, is
	only 100 chars.  Up it, say to 1000 chars. 

--- mail.c	Wed Feb  4 08:18:23 1987
***************
*** 418,424 ****
  bulkmail(argc, argv)
  char **argv;
  {
! 	char truename[100];
  	int first;
  	register char *cp;
  	int gaver = 0;
--- 418,424 ----
  bulkmail(argc, argv)
  char **argv;
  {
! 	char truename[1000];
  	int first;
  	register char *cp;
  	int gaver = 0;



More information about the Comp.unix.wizards mailing list