aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2008-01-07 16:51:25 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2008-01-07 16:51:25 +0000
commit9b4c072a041758cdd8c3516ccc1e45fea0b73f3d (patch)
tree24617ab4180df7ccbfcd7555ec7dd5dd647eabe9 /procps
parent766f65919b4b6dbbfca2c79480bff8e9fb796092 (diff)
downloadbusybox-9b4c072a041758cdd8c3516ccc1e45fea0b73f3d.tar.gz
busybox-9b4c072a041758cdd8c3516ccc1e45fea0b73f3d.tar.bz2
ps: fix yet another buglet from recent ulltoa conversion :(
Diffstat (limited to 'procps')
-rw-r--r--procps/ps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/procps/ps.c b/procps/ps.c
index 2bd339c14..3002fb9ad 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -187,12 +187,12 @@ static void func_pgid(char *buf, int size, const procps_status_t *ps)
static void put_lu(char *buf, int size, unsigned long u)
{
- char buf5[5];
+ char buf4[5];
/* see http://en.wikipedia.org/wiki/Tera */
- smart_ulltoa4(u, buf5, " mgtpezy");
- buf5[5] = '\0';
- sprintf(buf, "%.*s", size, buf5);
+ smart_ulltoa4(u, buf4, " mgtpezy");
+ buf4[4] = '\0';
+ sprintf(buf, "%.*s", size, buf4);
}
static void func_vsz(char *buf, int size, const procps_status_t *ps)