summaryrefslogtreecommitdiff
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 09:23:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 09:23:26 +0000
commit0a56e23187a30c4b263905e9efc35ed738183fd4 (patch)
tree741d64038c2ad586ad319e2208c44e223da70e0f /usr.bin/vmstat
parenta2f77e2c291ced0b85e36486c6ca1e2cfb53b64a (diff)
more snprintf
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/vmstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 90a9d67c26b..91e419fc837 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -1,5 +1,5 @@
/* $NetBSD: vmstat.c,v 1.29.4.1 1996/06/05 00:21:05 cgd Exp $ */
-/* $OpenBSD: vmstat.c,v 1.68 2002/03/15 19:11:01 art Exp $ */
+/* $OpenBSD: vmstat.c,v 1.69 2002/05/29 09:23:25 deraadt Exp $ */
/*
* Copyright (c) 1980, 1986, 1991, 1993
@@ -1076,9 +1076,9 @@ print_pool(struct pool *pp, char *name)
return;
if (pp->pr_maxpages == UINT_MAX)
- sprintf(maxp, "inf");
+ snprintf(maxp, sizeof maxp, "inf");
else
- sprintf(maxp, "%u", pp->pr_maxpages);
+ snprintf(maxp, sizeof maxp, "%u", pp->pr_maxpages);
/*
* Print single word. `ovflow' is number of characters didn't fit
* on the last word. `fmt' is a format string to print this word.