aboutsummaryrefslogtreecommitdiff
path: root/contrib/sendmail/makemap/makemap.c
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2013-04-21 17:08:44 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2013-04-21 17:08:44 +0000
commit552d4955b823634ed151c69903f0b9d33e76e78e (patch)
treeab52d50bcac2932bf5e37126b12ef0d2886488f1 /contrib/sendmail/makemap/makemap.c
parentd4bb04f686cc4600af4de408523b19917ace663f (diff)
parente388eedd7a4356992c2ecf5dcc8e77368cd9c391 (diff)
downloadsrc-552d4955b823634ed151c69903f0b9d33e76e78e.tar.gz
src-552d4955b823634ed151c69903f0b9d33e76e78e.zip
Merge sendmail 8.14.7 to HEAD
MFC after: 4 days
Notes
Notes: svn path=/head/; revision=249729
Diffstat (limited to 'contrib/sendmail/makemap/makemap.c')
-rw-r--r--contrib/sendmail/makemap/makemap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/sendmail/makemap/makemap.c b/contrib/sendmail/makemap/makemap.c
index f06ed0760080..f494ba03e2ec 100644
--- a/contrib/sendmail/makemap/makemap.c
+++ b/contrib/sendmail/makemap/makemap.c
@@ -20,7 +20,7 @@ SM_IDSTR(copyright,
Copyright (c) 1992, 1993\n\
The Regents of the University of California. All rights reserved.\n")
-SM_IDSTR(id, "@(#)$Id: makemap.c,v 8.180 2010/11/23 02:35:08 gshapiro Exp $")
+SM_IDSTR(id, "@(#)$Id: makemap.c,v 8.181 2013/03/12 15:24:51 ca Exp $")
#include <sys/types.h>
@@ -242,7 +242,7 @@ main(argc, argv)
cfile, sm_errstring(errno));
exit(EX_NOINPUT);
}
- while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL)
+ while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) >= 0)
{
register char *b;
@@ -392,7 +392,7 @@ main(argc, argv)
{
lineno = 0;
while (sm_io_fgets(smioin, SM_TIME_DEFAULT, ibuf, sizeof ibuf)
- != NULL)
+ >= 0)
{
register char *p;