diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2001-07-23 09:22:21 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2001-07-23 09:22:21 +0000 |
| commit | e29261ea22738f18bf299e67a4cf514e0eb4031d (patch) | |
| tree | 4a2fd9c41c75556e72f72c102b94ae838f8f7026 | |
| parent | 2ef74d2289d8131a12adc35be452368f29ed5767 (diff) | |
Notes
| -rw-r--r-- | usr.sbin/ypserv/yp_server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ypserv/yp_server.c b/usr.sbin/ypserv/yp_server.c index 774e1adf9d3e..5c57b0b7783d 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); } |
