From 27822b7d2431c11b3588d8eacbbedac7cfc978af Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 10 May 2004 10:44:37 +0000 Subject: [PATCH] Update for double filerecord announces --- ChangeLog | 1 + mbfido/toberep.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2543944c..e5f3a90b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -43,6 +43,7 @@ v0.51.4 11-Apr-2004 More debug logging info added for double filename announces. Added new experimental files database code which will only be used if configured with --enable-experiment. + Another small change for double filename announces. mbfile: The toberep command now logs the toberep.data in the debug diff --git a/mbfido/toberep.c b/mbfido/toberep.c index 85062be4..d1db118d 100644 --- a/mbfido/toberep.c +++ b/mbfido/toberep.c @@ -70,7 +70,7 @@ int Add_ToBeRep(struct _filerecord report) rc = fseek(tbr, - sizeof(Temp), SEEK_CUR); Syslog('f', "fseek rc=%d, size=%d", rc, sizeof(Temp)); Syslog('f', "Position before update is now %d", ftell(tbr)); - rc = fwrite(&report, sizeof(report), 1, tbr); + rc = fwrite(&report, sizeof(Temp), 1, tbr); Syslog('f', "Written %d, position after update is now %d", rc, ftell(tbr)); fclose(tbr); return TRUE;