From 9e3bd35cd79720a6547b183a6a6fb97ab1ae7b84 Mon Sep 17 00:00:00 2001 From: gshapiro Date: Wed, 10 Apr 2002 03:05:00 +0000 Subject: Import sendmail 8.12.3 --- contrib/sendmail/src/envelope.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'contrib/sendmail/src/envelope.c') diff --git a/contrib/sendmail/src/envelope.c b/contrib/sendmail/src/envelope.c index 16449f1..ec86b87 100644 --- a/contrib/sendmail/src/envelope.c +++ b/contrib/sendmail/src/envelope.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers. + * Copyright (c) 1998-2002 Sendmail, Inc. and its suppliers. * All rights reserved. * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. * Copyright (c) 1988, 1993 @@ -13,7 +13,7 @@ #include -SM_RCSID("@(#)$Id: envelope.c,v 8.279 2001/12/10 19:56:04 ca Exp $") +SM_RCSID("@(#)$Id: envelope.c,v 8.281 2002/02/06 19:54:54 ca Exp $") /* ** NEWENVELOPE -- fill in a new envelope @@ -1030,8 +1030,13 @@ setsender(from, e, delimptr, delimchar, internal) /* if the user already given fullname don't redefine */ if (FullName == NULL) FullName = macvalue('x', e); - if (FullName != NULL && FullName[0] == '\0') - FullName = NULL; + if (FullName != NULL) + { + if (FullName[0] == '\0') + FullName = NULL; + else + FullName = newstr(FullName); + } } if (e->e_from.q_user[0] != '\0' && -- cgit v1.1