diff options
author | 2003-04-19 18:26:06 +0000 | |
---|---|---|
committer | 2003-04-19 18:26:06 +0000 | |
commit | 62a75d4a0cdf20483c49f679e7b05f660a2486cb (patch) | |
tree | d3d881206165a983e14669bf8e9006221e89ef2d | |
parent | format string typo in usage (%d -> %s for program name) (diff) | |
download | wireguard-openbsd-62a75d4a0cdf20483c49f679e7b05f660a2486cb.tar.xz wireguard-openbsd-62a75d4a0cdf20483c49f679e7b05f660a2486cb.zip |
transposed args to snprintf, millert@ ok
-rw-r--r-- | usr.sbin/rpc.pcnfsd/pcnfsd_print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpc.pcnfsd/pcnfsd_print.c b/usr.sbin/rpc.pcnfsd/pcnfsd_print.c index b17bf9270c1..92f32b901c9 100644 --- a/usr.sbin/rpc.pcnfsd/pcnfsd_print.c +++ b/usr.sbin/rpc.pcnfsd/pcnfsd_print.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcnfsd_print.c,v 1.17 2003/04/05 10:43:39 avsm Exp $ */ +/* $OpenBSD: pcnfsd_print.c,v 1.18 2003/04/19 18:26:06 avsm Exp $ */ /* $NetBSD: pcnfsd_print.c,v 1.3 1995/08/14 19:45:18 gwr Exp $ */ /* @@ -220,7 +220,7 @@ pr_start2(system, pr, user, fname, opts, id) */ if (!stat(new_pathname, &statbuf)) { if (snprintf(new_pathname, sizeof new_pathname, "%s%d.spl", - rand(), pathname) >= sizeof new_pathname) { + pathname, rand()) >= sizeof new_pathname) { snprintf(tempstr, sizeof tempstr, "rpc.pcnfsd: spool file rename (%s->%s) failed.\n", pathname, new_pathname); |