[bug #20030] size of file not shown in "copy file" -> "file exists" dialog

Rainer Tammer INVALID.NOREPLY at gnu.org
Fri Jun 1 10:13:44 UTC 2007


Follow-up Comment #2, bug #20030 (project mc):

Hello,
when I revert back the type off_t to int in filegui.c line 643/645 the
correct size will be shown.

diff -c -r mc-4.6.1/src/filegui.c mc-4.6.0/src/filegui.c
*** mc-4.6.1/src/filegui.c      Fri May 27 16:19:18 2005
--- mc-4.6.0/src/filegui.c      Mon Dec  9 06:03:45 2002
***************
*** 640,652 ****
      ADD_RD_LABEL (ui, 11, 0, 0);

      ADD_RD_LABEL (ui, 12, file_date (ui->d_stat->st_mtime),
!                 (off_t) ui->d_stat->st_size);
      ADD_RD_LABEL (ui, 13, file_date (ui->s_stat->st_mtime),
!                 (off_t) ui->s_stat->st_size);
  }

  void
! file_progress_set_stalled_label (FileOpContext *ctx, const char
*stalled_msg)
  {
      FileOpContextUI *ui;

--- 653,665 ----
      ADD_RD_LABEL (ui, 11, 0, 0);

      ADD_RD_LABEL (ui, 12, file_date (ui->d_stat->st_mtime),
!                 (int) ui->d_stat->st_size);
      ADD_RD_LABEL (ui, 13, file_date (ui->s_stat->st_mtime),
!                 (int) ui->s_stat->st_size);
  }

  void
! file_progress_set_stalled_label (FileOpContext *ctx, char *stalled_msg)
  {
      FileOpContextUI *ui;

Bye
  Rainer

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20030>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




More information about the mc-devel mailing list