gnucash maint: Commit bf55c30 deleted the call to fgets that reads the file.

Mike Alexander mta at code.gnucash.org
Sat Jan 12 01:41:06 EST 2019


Updated	 via  https://github.com/Gnucash/gnucash/commit/e4836f3c (commit)
	from  https://github.com/Gnucash/gnucash/commit/f3c8c040 (commit)



commit e4836f3c583e0bb0ddd4f6cb536104b5106cab52
Author: Mike Alexander <mta at umich.edu>
Date:   Sat Jan 12 01:37:09 2019 -0500

    Commit bf55c30 deleted the call to fgets that reads the file.

diff --git a/gnucash/import-export/log-replay/gnc-log-replay.c b/gnucash/import-export/log-replay/gnc-log-replay.c
index a3f3eca..92c2a4b 100644
--- a/gnucash/import-export/log-replay/gnc-log-replay.c
+++ b/gnucash/import-export/log-replay/gnc-log-replay.c
@@ -639,6 +639,7 @@ void gnc_file_log_replay (GtkWindow *parent)
                     {
                         do
                         {
+                            fgets(read_buf, sizeof(read_buf), log_file);
                             /*DEBUG("Chunk read: %s",read_retval);*/
                             if (strncmp(record_start_str, read_buf, strlen(record_start_str)) == 0) /* If a record started */
                             {



Summary of changes:
 gnucash/import-export/log-replay/gnc-log-replay.c | 1 +
 1 file changed, 1 insertion(+)



More information about the gnucash-changes mailing list