[comp.bugs.4bsd] Sendmail 5.61

lws@comm.wang.com (Lyle Seaman) (05/07/91)

Somewhere around line 408 of deliver.c (it's hard for me to 
say, I've made some local mods without keeping good track :-()
there is this segment of code:
			else {
				*t++ = ',';
				for (p = to->q_paddr; *p; *t++ = *p++);
			}

It fails to null-terminate the list of recipients.  This is usually
harmless.  In cases where one of the recipients is unreachable, 
the log line has extra text after the last recipient (usually part
of a name) which caused some problems for a mail flow summarizer
I wrote.  Add this line:
				*t='\0';

and get:
			else {
				*t++ = ',';
				for (p = to->q_paddr; *p; *t++ = *p++);
				*t='\0';/* 910506lws@wang.com */
			}

-- 
Lyle 	508 967 2322  		
lws@wang.com 	
Wang Labs, Lowell, MA, USA