Fix brokenness in top on big-endian 32-bit systems introduced when

changing format_k2 to take a long long. Because itoa is defined as a K&R
C function, without prototyping its arguments, format_k2 passed a 64-bit
value, but itoa() received only the first word, showing '0' in all memory
fields.
This commit is contained in:
Nathan Whitehorn 2010-04-19 14:34:44 +00:00
parent 307b49efef
commit 3560b8af1f

View File

@ -499,7 +499,7 @@ unsigned long long amt;
} }
} }
p = strecpy(p, itoa(amt)); p = strecpy(p, itoa((int)amt));
*p++ = tag; *p++ = tag;
*p = '\0'; *p = '\0';