Fixed wrong manual creation of new bbs file areas
This commit is contained in:
parent
7f6bf3686a
commit
cdeb299ae7
@ -62,6 +62,8 @@ v0.51.4 11-Apr-2004
|
|||||||
It wasn't possible anymore to change the number of systems in
|
It wasn't possible anymore to change the number of systems in
|
||||||
menu 1.11.11
|
menu 1.11.11
|
||||||
Fixed a header include.
|
Fixed a header include.
|
||||||
|
Fixed an error where new created file areas were created
|
||||||
|
without a file header.
|
||||||
|
|
||||||
mbtask:
|
mbtask:
|
||||||
Removed debug logging for the disk thread.
|
Removed debug logging for the disk thread.
|
||||||
|
@ -419,6 +419,9 @@ int EditFileRec(int Area)
|
|||||||
if ((fp = fopen(temp, "a+")) == NULL) {
|
if ((fp = fopen(temp, "a+")) == NULL) {
|
||||||
WriteError("$Can't create file database %s", temp);
|
WriteError("$Can't create file database %s", temp);
|
||||||
} else {
|
} else {
|
||||||
|
fdbhdr.hdrsize = sizeof(fdbhdr);
|
||||||
|
fdbhdr.recsize = sizeof(fdb);
|
||||||
|
fwrite(fp, sizeof(fdbhdr), 1, fp);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
chmod(temp, 0660);
|
chmod(temp, 0660);
|
||||||
|
Reference in New Issue
Block a user