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
307b49efef
commit
3560b8af1f
@ -499,7 +499,7 @@ unsigned long long amt;
|
||||
}
|
||||
}
|
||||
|
||||
p = strecpy(p, itoa(amt));
|
||||
p = strecpy(p, itoa((int)amt));
|
||||
*p++ = tag;
|
||||
*p = '\0';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user