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;