← Commit list

9b4c072a0

Denis Vlasenko
Denis Vlasenko
2008-01-07
FAILED Duration: 19s

Subject

ps: fix yet another buglet from recent ulltoa conversion :(

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

procps/ps.c+4 -4
@@ -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)