mirror of https://github.com/MidnightCommander/mc
* 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].
This commit is contained in:
parent
2e0140f5b6
commit
9e27c8703a
|
@ -1,3 +1,8 @@
|
|||
2004-09-04 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* info.c (info_show_info): don't truncate block counts to 32 bits
|
||||
on 64-bit platforms
|
||||
|
||||
2004-09-04 Pavel S. Shirshov <pavelsh@mail.ru>
|
||||
|
||||
* 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 <jakub@redhat.com>
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue