diff options
Diffstat (limited to 'procps/ps.c')
-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) |