From c24ffe47f2b010ed00d0121469b29ff6434b484d Mon Sep 17 00:00:00 2001 From: Jacques Vidrine Date: Mon, 9 Sep 2002 00:01:33 +0000 Subject: Oops. This patch was reversed. PR: ports/42562 Noticed by: Tilman Linneweh --- mail/zmailer/files/patch-smtpserver::smtpcmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail/zmailer/files/patch-smtpserver::smtpcmds.c b/mail/zmailer/files/patch-smtpserver::smtpcmds.c index 4fb2b118acd6..f64ad2a53687 100644 --- a/mail/zmailer/files/patch-smtpserver::smtpcmds.c +++ b/mail/zmailer/files/patch-smtpserver::smtpcmds.c @@ -4,8 +4,8 @@ if (STYLE(SS->cfinfo, 'h')) { char argbuf[MAXHOSTNAMELEN+30]; char *s; -- snprintf(argbuf, sizeof(argbuf), "%s %s", SS->rhostname, -+ sprintf(argbuf,"%s %s", SS->rhostname, +- sprintf(argbuf,"%s %s", SS->rhostname, ++ snprintf(argbuf, sizeof(argbuf), "%s %s", SS->rhostname, ((SS->ihostaddr && (SS->ihostaddr[0] != '\0')) ? SS->ihostaddr : "[0.0.0.0]")); if ((s = router(SS, RKEY_HELLO, 1, argbuf, strlen(argbuf))) == NULL) -- cgit v1.2.3