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); _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"