From: Francois Fleuret Date: Mon, 4 Feb 2013 20:56:43 +0000 (+0100) Subject: Added some missing fflush for the files we write to. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=cf362936559fd3708d5bd864d24e499c68d07d2f;p=mymail.git Added some missing fflush for the files we write to. --- diff --git a/mymail.c b/mymail.c index b25b06b..a8fa8c9 100644 --- a/mymail.c +++ b/mymail.c @@ -818,6 +818,7 @@ int main(int argc, char **argv) { optind++; } + fflush(db_file); fclose(db_file); for(f = 0; f < nb_fields_to_parse; f++) { @@ -964,6 +965,7 @@ int main(int argc, char **argv) { } if(output_file != stdout) { + fflush(output_file); fclose(output_file); }