Fixed wrong manual creation of new bbs file areas

This commit is contained in:
Michiel Broek 2004-05-03 20:06:23 +00:00
parent 7f6bf3686a
commit cdeb299ae7
2 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,8 @@ v0.51.4 11-Apr-2004
It wasn't possible anymore to change the number of systems in
menu 1.11.11
Fixed a header include.
Fixed an error where new created file areas were created
without a file header.
mbtask:
Removed debug logging for the disk thread.

View File

@ -419,6 +419,9 @@ int EditFileRec(int Area)
if ((fp = fopen(temp, "a+")) == NULL) {
WriteError("$Can't create file database %s", temp);
} else {
fdbhdr.hdrsize = sizeof(fdbhdr);
fdbhdr.recsize = sizeof(fdb);
fwrite(fp, sizeof(fdbhdr), 1, fp);
fclose(fp);
}
chmod(temp, 0660);