Re: bug with large files
- From: Jindrich Novy <jnovy redhat com>
- To: Pavel Tsekov <ptsekov gmx net>
- Cc: Nerijus Baliunas <nerijus users sourceforge net>, MC Devel <mc-devel gnome org>
- Subject: Re: bug with large files
- Date: Wed, 24 Nov 2004 11:42:44 +0100
Hello Pavel,
On Wed, 2004-11-24 at 12:31 +0200, Pavel Tsekov wrote:
> What about %llu ?
Sure, that's my typo. Please use the attached patch instead.
--
Jindrich Novy <jnovy redhat com>, http://people.redhat.com/jnovy/
--- mc-4.6.1-20041124/src/filegui.c.badsize 2004-11-08 21:10:33.000000000 +0100
+++ mc-4.6.1-20041124/src/filegui.c 2004-11-24 09:51:14.330852896 +0100
@@ -525,8 +525,13 @@
N_("&No"), BY - 2, 37, REPLACE_NO}, {
N_("&Yes"), BY - 2, 28, REPLACE_YES}, {
N_("Overwrite this target?"), BY - 2, 4, 0}, {
- N_("Target date: %s, size %d"), 6, 4, 0}, {
- N_("Source date: %s, size %d"), 5, 4, 0}
+#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
+ N_("Target date: %s, size %llu"), 6, 4, 0}, {
+ N_("Source date: %s, size %llu"), 5, 4, 0}
+#else
+ N_("Target date: %s, size %u"), 6, 4, 0}, {
+ N_("Source date: %s, size %u"), 5, 4, 0}
+#endif
};
#define ADD_RD_BUTTON(i)\
@@ -635,9 +640,9 @@
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);
+ (off_t) ui->d_stat->st_size);
ADD_RD_LABEL (ui, 13, file_date (ui->s_stat->st_mtime),
- (int) ui->s_stat->st_size);
+ (off_t) ui->s_stat->st_size);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]