Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/top/dist expand a buffer size to properly handl...



details:   https://anonhg.NetBSD.org/src/rev/74fcb3b412ac
branches:  trunk
changeset: 464588:74fcb3b412ac
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Oct 13 07:42:27 2019 +0000

description:
expand a buffer size to properly handle full-size 64 bit values

diffstat:

 external/bsd/top/dist/utils.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 242e03175d90 -r 74fcb3b412ac external/bsd/top/dist/utils.c
--- a/external/bsd/top/dist/utils.c     Sun Oct 13 07:28:04 2019 +0000
+++ b/external/bsd/top/dist/utils.c     Sun Oct 13 07:42:27 2019 +0000
@@ -611,7 +611,7 @@
 format_k(long amt)
 
 {
-    static char retarray[NUM_STRINGS][16];
+    static char retarray[NUM_STRINGS][24];
     static int idx = 0;
     register char *ret;
     register char tag = 'K';



Home | Main Index | Thread Index | Old Index