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:
parent
ea377e0111
commit
9e69ae693d
@ -499,7 +499,7 @@ unsigned long long amt;
|
||||
}
|
||||
}
|
||||
|
||||
p = strecpy(p, itoa(amt));
|
||||
p = strecpy(p, itoa((int)amt));
|
||||
*p++ = tag;
|
||||
*p = '\0';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user