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

@@ -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);