summaryrefslogtreecommitdiff
path: root/usr.bin/top/top.c
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2010-03-23 16:16:10 +0000
committerlum <lum@cvs.openbsd.org>2010-03-23 16:16:10 +0000
commitbfe9723d3f3e6b549617a3a7bbe2f2984124f8bd (patch)
tree46fb9b08ca189437125e86d40b0908b3519dfb6c /usr.bin/top/top.c
parentc97aeae152754a9f6e5405761b22437a889b220d (diff)
Fix pointer usage with the renice and kill error message structure. Pointer was used without allocating memory. ok beck@ otto@
Diffstat (limited to 'usr.bin/top/top.c')
-rw-r--r--usr.bin/top/top.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c
index c7d322f3b3a..58722f957f4 100644
--- a/usr.bin/top/top.c
+++ b/usr.bin/top/top.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: top.c,v 1.71 2010/03/22 12:20:25 lum Exp $ */
+/* $OpenBSD: top.c,v 1.72 2010/03/23 16:16:09 lum Exp $ */
/*
* Top users/processes display for Unix
@@ -532,7 +532,7 @@ restart:
int
rundisplay(void)
{
- static char tempbuf[50];
+ static char tempbuf[TEMPBUFSIZE];
sigset_t mask;
char ch, *iptr;
int change, i;