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/0286fba39a41
branches:  trunk
changeset: 460220:0286fba39a41
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 273b7ccc893d -r 0286fba39a41 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