Small bugfix and some updates

This commit is contained in:
Michiel Broek
2004-04-08 18:37:28 +00:00
parent 4dd08644bd
commit ef422b88f0
4 changed files with 18 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ int Add_ToBeRep(struct _filerecord report)
*/
if (report.Fdate > Temp.Fdate) {
Syslog('f', "Add_ToBeRep this file is newer, update record at position %d", ftell(tbr));
fseek(tbr, - sizeof(Temp), SEEK_SET);
fseek(tbr, - sizeof(Temp), SEEK_CUR);
fwrite(&report, sizeof(report), 1, tbr);
fclose(tbr);
return TRUE;