Don't write lines that get to long when constructing

Return-Path : address
line.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1993-03-12 16:12:27 +00:00
parent 0de6088467
commit 882b8d1481

View File

@@ -82,12 +82,14 @@ POP * p;
if ((return_path_end = index(return_path_adr, ' ')) != NULL)
*return_path_end = '\0';
if (strlen(return_path_adr) != 0 && *return_path_adr != '\n') {
static char tmpbuf[MAXMSGLINELEN];
strcpy(tmpbuf, "Return-Path:");
static char tmpbuf[MAXMSGLINELEN + 20];
strcpy(tmpbuf, "Return-Path: ");
strcat(tmpbuf, return_path_adr);
strcat(tmpbuf, "\n");
pop_sendline (p,tmpbuf);
return_path_sent++;
if (strlen(tmpbuf) < MAXMSGLINELEN) {
pop_sendline (p,tmpbuf);
return_path_sent++;
}
}
}
}