mirror of
https://github.com/NeoFlock/neonucleus.git
synced 2025-09-24 09:03:32 +02:00
being safe for file open
This commit is contained in:
parent
051019e8f4
commit
faf569391c
@ -575,7 +575,7 @@ int main() {
|
|||||||
nn_addFileSystem(computer, "OpenOS", 1, &genericFS);
|
nn_addFileSystem(computer, "OpenOS", 1, &genericFS);
|
||||||
|
|
||||||
ne_drive drive = {
|
ne_drive drive = {
|
||||||
.file = fopen("data/drive.img", "r+")
|
.file = fopen("data/drive.img", "rb+")
|
||||||
};
|
};
|
||||||
assert(drive.file != NULL);
|
assert(drive.file != NULL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user