Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2018 18:00:42 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r328203 - in stable: 10/sys/contrib/ipfilter/netinet 11/sys/contrib/ipfilter/netinet
Message-ID:  <201801201800.w0KI0gd9037987@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Sat Jan 20 18:00:42 2018
New Revision: 328203
URL: https://svnweb.freebsd.org/changeset/base/328203

Log:
  MFC r327912:
  
  Though this block of code is not used by FreeBSD, correct a call to
  sprintf() with a macro call to SNPRINTF similar to other calls to
  SNPRINTF within this same block.

Modified:
  stable/11/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
Directory Properties:
  stable/11/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/11/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
==============================================================================
--- stable/11/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c	Sat Jan 20 17:46:09 2018	(r328202)
+++ stable/11/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c	Sat Jan 20 18:00:42 2018	(r328203)
@@ -2136,7 +2136,7 @@ ipf_p_ftp_eprt6(softf, fin, ip, nat, ftp, dlen)
 	SNPRINTF(s, left, "%x:%x", a >> 16, a & 0xffff);
 	left -= strlen(s);
 	s += strlen(s);
-	sprintf(s, "|%d|\r\n", port);
+	SNPRINTF(s, left, "|%d|\r\n", port);
 #else
 	(void) sprintf(s, "EPRT %c2%c", delim, delim);
 	s += strlen(s);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801201800.w0KI0gd9037987>