summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/src/alias.c
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2001-01-21 22:17:06 +0000
committergshapiro <gshapiro@FreeBSD.org>2001-01-21 22:17:06 +0000
commitc5e098efbef941858129b84a112a036d572ba53c (patch)
tree277ca53e5c12bcf1d38feccf7fd364839dbf811a /contrib/sendmail/src/alias.c
parentf1e9c33a3410fd42927853cf01fb4279382f2bcf (diff)
parent167a83e7b8733416154f871e39e86ba77eb1554d (diff)
downloadFreeBSD-src-c5e098efbef941858129b84a112a036d572ba53c.zip
FreeBSD-src-c5e098efbef941858129b84a112a036d572ba53c.tar.gz
This commit was generated by cvs2svn to compensate for changes in r71345,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/sendmail/src/alias.c')
-rw-r--r--contrib/sendmail/src/alias.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/sendmail/src/alias.c b/contrib/sendmail/src/alias.c
index 6a0b17c..4c6a174 100644
--- a/contrib/sendmail/src/alias.c
+++ b/contrib/sendmail/src/alias.c
@@ -13,7 +13,7 @@
#include <sendmail.h>
#ifndef lint
-static char id[] = "@(#)$Id: alias.c,v 8.142.4.3 2000/09/21 21:52:16 ca Exp $";
+static char id[] = "@(#)$Id: alias.c,v 8.142.4.9 2000/11/08 20:58:42 geir Exp $";
#endif /* ! lint */
# define SEPARATOR ':'
@@ -279,7 +279,7 @@ setalias(spec)
map = &s->s_map;
memset(map, '\0', sizeof *map);
map->map_mname = s->s_name;
- p = strpbrk(p,ALIAS_SPEC_SEPARATORS);
+ p = strpbrk(p, ALIAS_SPEC_SEPARATORS);
if (p != NULL && *p == SEPARATOR)
{
/* map name */
@@ -732,7 +732,7 @@ readaliases(map, af, announcestats, logstats)
register char *nlp;
nlp = &p[strlen(p)];
- if (nlp[-1] == '\n')
+ if (nlp > p && nlp[-1] == '\n')
*--nlp = '\0';
if (CheckAliases)
OpenPOWER on IntegriCloud