freebsd-ports/mail/zmailer/files/patch-smtpserver::smtpcmds.c
Jacques Vidrine c24ffe47f2 Oops. This patch was reversed.
PR:		ports/42562
Noticed by:	Tilman Linneweh <tilman@arved.de>
2002-09-09 00:01:33 +00:00

11 lines
500 B
C

--- smtpserver/smtpcmds.c Mon Aug 19 19:19:54 2002
+++ smtpserver/smtpcmds.c.orig Mon Aug 19 19:16:28 2002
@@ -223,7 +223,7 @@
if (STYLE(SS->cfinfo, 'h')) {
char argbuf[MAXHOSTNAMELEN+30];
char *s;
- 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)