svn commit: r328203 - in stable: 10/sys/contrib/ipfilter/netinet 11/sys/contrib/ipfilter/netinet
Cy Schubert
cy at FreeBSD.org
Sat Jan 20 18:00:43 UTC 2018
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/10/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
Directory Properties:
stable/10/ (props changed)
Changes in other areas also in this revision:
Modified:
stable/11/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/10/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
==============================================================================
--- stable/10/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c Sat Jan 20 17:46:09 2018 (r328202)
+++ stable/10/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);
More information about the svn-src-stable-10
mailing list