diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-01-07 16:51:25 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-01-07 16:51:25 +0000 |
commit | 9b4c072a041758cdd8c3516ccc1e45fea0b73f3d (patch) | |
tree | 24617ab4180df7ccbfcd7555ec7dd5dd647eabe9 | |
parent | 766f65919b4b6dbbfca2c79480bff8e9fb796092 (diff) | |
download | busybox-w32-9b4c072a041758cdd8c3516ccc1e45fea0b73f3d.tar.gz busybox-w32-9b4c072a041758cdd8c3516ccc1e45fea0b73f3d.tar.bz2 busybox-w32-9b4c072a041758cdd8c3516ccc1e45fea0b73f3d.zip |
ps: fix yet another buglet from recent ulltoa conversion :(
-rw-r--r-- | procps/ps.c | 8 |
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) | |||
187 | 187 | ||
188 | static void put_lu(char *buf, int size, unsigned long u) | 188 | static void put_lu(char *buf, int size, unsigned long u) |
189 | { | 189 | { |
190 | char buf5[5]; | 190 | char buf4[5]; |
191 | 191 | ||
192 | /* see http://en.wikipedia.org/wiki/Tera */ | 192 | /* see http://en.wikipedia.org/wiki/Tera */ |
193 | smart_ulltoa4(u, buf5, " mgtpezy"); | 193 | smart_ulltoa4(u, buf4, " mgtpezy"); |
194 | buf5[5] = '\0'; | 194 | buf4[4] = '\0'; |
195 | sprintf(buf, "%.*s", size, buf5); | 195 | sprintf(buf, "%.*s", size, buf4); |
196 | } | 196 | } |
197 | 197 | ||
198 | static void func_vsz(char *buf, int size, const procps_status_t *ps) | 198 | static void func_vsz(char *buf, int size, const procps_status_t *ps) |