summaryrefslogtreecommitdiffstats
path: root/contrib/top/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/top/display.c')
-rw-r--r--contrib/top/display.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/top/display.c b/contrib/top/display.c
index 09c5d64..2a39072 100644
--- a/contrib/top/display.c
+++ b/contrib/top/display.c
@@ -7,6 +7,8 @@
*
* Copyright (c) 1984, 1989, William LeFebvre, Rice University
* Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
+ *
+ * $FreeBSD$
*/
/*
@@ -829,7 +831,7 @@ caddr_t a1, a2, a3;
register int i;
/* first, format the message */
- (void) sprintf(next_msg, msgfmt, a1, a2, a3);
+ (void) snprintf(next_msg, sizeof(next_msg), msgfmt, a1, a2, a3);
if (msglen > 0)
{
OpenPOWER on IntegriCloud