mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 00:31:16 +00:00
Patch from Vernon Sauder.
The off_t type is not a consistent size; it depends on the kernel options (something about large file support). Therefore, the format string for printing an address is not always the same.
This commit is contained in:
parent
bbf2ce36d8
commit
d2b860fecb
@ -650,7 +650,7 @@ static void display(void)
|
|||||||
for (pr = endfu->nextpr; pr; pr = pr->nextpr) {
|
for (pr = endfu->nextpr; pr; pr = pr->nextpr) {
|
||||||
switch (pr->flags) {
|
switch (pr->flags) {
|
||||||
case F_ADDRESS:
|
case F_ADDRESS:
|
||||||
(void) printf(pr->fmt, eaddress);
|
(void) printf(pr->fmt, (unsigned int) eaddress);
|
||||||
break;
|
break;
|
||||||
case F_TEXT:
|
case F_TEXT:
|
||||||
(void) printf(pr->fmt);
|
(void) printf(pr->fmt);
|
||||||
|
Loading…
Reference in New Issue
Block a user