diff options
author | imp <imp@FreeBSD.org> | 2000-10-04 23:34:16 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2000-10-04 23:34:16 +0000 |
commit | 7790e4029528c008ed9548e6cd9cbc55f6d22c61 (patch) | |
tree | e9060a1e5ed5c7d89a503c7970fe9b42f9d17188 /contrib/top/top.c | |
parent | 29aa43e76a80b47afb212724eb8615c6baefc25b (diff) | |
download | FreeBSD-src-7790e4029528c008ed9548e6cd9cbc55f6d22c61.zip FreeBSD-src-7790e4029528c008ed9548e6cd9cbc55f6d22c61.tar.gz |
display.c: sprintf -> snprintf
top.c: fix from NetBSD/OpenBSD: make sure that new_message() is called
with a format.
Add $FreeBSD$ While I'm here.
These files are already off the vendor branch.
Diffstat (limited to 'contrib/top/top.c')
-rw-r--r-- | contrib/top/top.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/top/top.c b/contrib/top/top.c index 51cd3f0..3123a0d 100644 --- a/contrib/top/top.c +++ b/contrib/top/top.c @@ -10,6 +10,8 @@ char *copyright = * * Copyright (c) 1984, 1989, William LeFebvre, Rice University * Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University + * + * $FreeBSD$ */ /* @@ -807,7 +809,7 @@ Usage: %s [-ISbinqut] [-d x] [-s x] [-o field] [-U username] [number]\n", { if ((errmsg = kill_procs(tempbuf2)) != NULL) { - new_message(MT_standout, errmsg); + new_message(MT_standout, "%s", errmsg); putchar('\r'); no_command = Yes; } |