From 9e27c8703a4333c0d08364af492d65689a58343d Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Fri, 3 Sep 2004 22:32:41 +0000 Subject: [PATCH] * info.c (info_show_info): don't truncate block counts to 32 bits on 64-bit platforms * util.c (get_current_wd): We know there is just one '\0' byte in p, at p[len - 1]. --- src/ChangeLog | 7 +++++++ src/info.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 5ad478c54..023febf62 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-09-04 Jakub Jelinek + + * info.c (info_show_info): don't truncate block counts to 32 bits + on 64-bit platforms + 2004-09-04 Pavel S. Shirshov * subshell.c (exit_subshell): Prevent unwanted reuse of freed @@ -20,6 +25,8 @@ * find.c (do_search): Likewise. (init_find_vars): Likewise. (do_find): Likewise. + * util.c (get_current_wd): We know there is just one '\0' byte + in p, at p[len - 1]. Based on patch from Jakub Jelinek diff --git a/src/info.c b/src/info.c index 33d0f142c..e624eff06 100644 --- a/src/info.c +++ b/src/info.c @@ -163,7 +163,7 @@ info_show_info (struct WInfo *info) printw (_("Size: %s"), buffer); #ifdef HAVE_STRUCT_STAT_ST_BLOCKS printw ((st.st_blocks==1) ? - _(" (%d block)") : _(" (%d blocks)"), (int) st.st_blocks); + _(" (%ld block)") : _(" (%ld blocks)"), (long) st.st_blocks); #endif }