Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/common sprintf->snprintf
details: https://anonhg.NetBSD.org/src/rev/3634c7690a42
branches: trunk
changeset: 464424:3634c7690a42
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Oct 05 22:06:29 2019 +0000
description:
sprintf->snprintf
diffstat:
tests/fs/common/fstest_nfs.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (26 lines):
diff -r 3a0196304a8d -r 3634c7690a42 tests/fs/common/fstest_nfs.c
--- a/tests/fs/common/fstest_nfs.c Sat Oct 05 20:24:16 2019 +0000
+++ b/tests/fs/common/fstest_nfs.c Sat Oct 05 22:06:29 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fstest_nfs.c,v 1.10 2019/02/01 09:06:07 mrg Exp $ */
+/* $NetBSD: fstest_nfs.c,v 1.11 2019/10/05 22:06:29 mrg Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -87,10 +87,12 @@
* First, we start the nfs service.
*/
srcdir = atf_tc_get_config_var(tc, "srcdir");
- sprintf(nfsdpath, "%s/../nfs/nfsservice/rumpnfsd", srcdir);
- sprintf(ethername, "/%s/%s.etherbus", getcwd(cwd, sizeof(cwd)), image);
- sprintf(ethername_ro, "%s_ro", ethername);
- sprintf(imagepath, "/%s/%s", cwd, image);
+ snprintf(nfsdpath, sizeof nfsdpath,
+ "%s/../nfs/nfsservice/rumpnfsd", srcdir);
+ snprintf(ethername, sizeof ethername,
+ "/%s/%s.etherbus", getcwd(cwd, sizeof(cwd)), image);
+ snprintf(ethername_ro, sizeof ethername_ro, "%s_ro", ethername);
+ snprintf(imagepath, sizeof imagepath, "/%s/%s", cwd, image);
nfsdargv[0] = nfsdpath;
nfsdargv[1] = ethername;
Home |
Main Index |
Thread Index |
Old Index