Ticket #3000: incorrect file size is reported in copy/move overwrite query dialog.

(overwrite_query_dialog): adjust file size.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2013-04-11 14:26:50 +04:00 committed by Ilia Maslakov
parent 6b64835a7e
commit 7b5b41147d
1 changed files with 2 additions and 2 deletions

View File

@ -547,12 +547,12 @@ overwrite_query_dialog (FileOpContext * ctx, enum OperationMode mode)
add_widget (ui->replace_dlg, hline_new (y++, -1, -1));
/* source date and size */
size_trunc_len (fsize_buffer, sizeof (fsize_buffer), ui->s_stat->st_size, -1,
size_trunc_len (fsize_buffer, sizeof (fsize_buffer), ui->s_stat->st_size, 0,
panels_options.kilobyte_si);
ADD_RD_LABEL (2, file_date (ui->s_stat->st_mtime), fsize_buffer, y++);
rd_xlen = max (rd_xlen, label2->cols + 8);
/* destination date and size */
size_trunc_len (fsize_buffer, sizeof (fsize_buffer), ui->d_stat->st_size, -1,
size_trunc_len (fsize_buffer, sizeof (fsize_buffer), ui->d_stat->st_size, 0,
panels_options.kilobyte_si);
ADD_RD_LABEL (3, file_date (ui->d_stat->st_mtime), fsize_buffer, y++);
rd_xlen = max (rd_xlen, label2->cols + 8);