summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-07-23 09:22:21 +0000
committerkris <kris@FreeBSD.org>2001-07-23 09:22:21 +0000
commite737b9651c07b21897bc3342661e10e59abd07fc (patch)
tree4a2fd9c41c75556e72f72c102b94ae838f8f7026 /usr.sbin/ypserv
parent845119946b5ba9abe731311f51a0d0e7849f0472 (diff)
downloadFreeBSD-src-e737b9651c07b21897bc3342661e10e59abd07fc.zip
FreeBSD-src-e737b9651c07b21897bc3342661e10e59abd07fc.tar.gz
sprintf -> snprintf
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r--usr.sbin/ypserv/yp_server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ypserv/yp_server.c b/usr.sbin/ypserv/yp_server.c
index 774e1ad..5c57b0b 100644
--- a/usr.sbin/ypserv/yp_server.c
+++ b/usr.sbin/ypserv/yp_server.c
@@ -366,10 +366,10 @@ ypproc_xfr_2_svc(ypreq_xfr *argp, struct svc_req *rqstp)
char g[11], t[11], p[11];
char ypxfr_command[MAXPATHLEN + 2];
- sprintf (ypxfr_command, "%sypxfr", _PATH_LIBEXEC);
- sprintf (t, "%u", argp->transid);
- sprintf (g, "%u", argp->prog);
- sprintf (p, "%u", argp->port);
+ snprintf (ypxfr_command, sizeof(ypxfr_command), "%sypxfr", _PATH_LIBEXEC);
+ snprintf (t, sizeof(t), "%u", argp->transid);
+ snprintf (g, sizeof(g), "%u", argp->prog);
+ snprintf (p, sizeof(p), "%u", argp->port);
if (debug) {
close(0); close(1); close(2);
}
OpenPOWER on IntegriCloud