[grisbi-cvs] grisbi/src gsb_file_util.c,1.39,1.40
Mickaƫl Remars
mykeul at users.sourceforge.net
Sat Jun 6 17:03:08 CEST 2009
- Previous message: [grisbi-cvs] grisbi/src affichage.c, 1.158, 1.159 gsb_file_load.c, 1.178, 1.179 gsb_file_save.c, 1.126, 1.127 metatree.c, 1.135, 1.136
- Next message: [grisbi-cvs] grisbi/src gsb_data_account.c, 1.79, 1.80 gsb_data_bank.c, 1.10, 1.11 gsb_data_payee.c, 1.47, 1.48 gsb_data_report.c, 1.29, 1.30 gsb_data_report_text_comparison.c, 1.13, 1.14 gsb_data_scheduled.c, 1.26, 1.27 gsb_data_transaction.c, 1.62, 1.63 gsb_file.c, 1.52, 1.53 gsb_file_save.c, 1.127, 1.128
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20325
Modified Files:
gsb_file_util.c
Log Message:
Avoid calling gzdirect() on win32 (this functions does not exist in all versions of the lib).
Index: gsb_file_util.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file_util.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- gsb_file_util.c 27 Apr 2009 19:41:03 -0000 1.39
+++ gsb_file_util.c 6 Jun 2009 15:03:06 -0000 1.40
@@ -127,11 +127,12 @@
}
orig_size = stat_buf.st_size;
-
+#ifndef _WIN32
if (gzdirect (file))
/* the file is not compressed, keep the original size */
alloc_size = orig_size + 1;
else
+#endif//_WIN32
/* the file is compressed, the final size should be about 20x more
* this is not completly true, if the file is compressed AND crypted,
* the size doesn't really change. but i can't know here if the file is crypted
- Previous message: [grisbi-cvs] grisbi/src affichage.c, 1.158, 1.159 gsb_file_load.c, 1.178, 1.179 gsb_file_save.c, 1.126, 1.127 metatree.c, 1.135, 1.136
- Next message: [grisbi-cvs] grisbi/src gsb_data_account.c, 1.79, 1.80 gsb_data_bank.c, 1.10, 1.11 gsb_data_payee.c, 1.47, 1.48 gsb_data_report.c, 1.29, 1.30 gsb_data_report_text_comparison.c, 1.13, 1.14 gsb_data_scheduled.c, 1.26, 1.27 gsb_data_transaction.c, 1.62, 1.63 gsb_file.c, 1.52, 1.53 gsb_file_save.c, 1.127, 1.128
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs
mailing list