projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
766f659
)
ps: fix yet another buglet from recent ulltoa conversion :(
author
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 7 Jan 2008 16:51:25 +0000
(16:51 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 7 Jan 2008 16:51:25 +0000
(16:51 -0000)
procps/ps.c
patch
|
blob
|
history
diff --git
a/procps/ps.c
b/procps/ps.c
index 2bd339c149d9349df4831ced96750717c6b4f24d..3002fb9ad3a5c8422233dceadd4d04260069b852 100644
(file)
--- 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 buf
5
[5];
+ char buf
4
[5];
/* see http://en.wikipedia.org/wiki/Tera */
- smart_ulltoa4(u, buf
5
, " mgtpezy");
- buf
5[5
] = '\0';
- sprintf(buf, "%.*s", size, buf
5
);
+ smart_ulltoa4(u, buf
4
, " mgtpezy");
+ buf
4[4
] = '\0';
+ sprintf(buf, "%.*s", size, buf
4
);
}
static void func_vsz(char *buf, int size, const procps_status_t *ps)