mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-13 15:05:05 +00:00
change O_RDWR to O_WRONLY
This commit is contained in:
parent
ba478e64a2
commit
3275b7c941
@ -25,7 +25,7 @@ int emile_map_bootblock_write(emile_map_t* map, char* bootblock)
|
||||
|
||||
sprintf(name, "%s%d", map->name, map->current + 1);
|
||||
|
||||
fd = open(name, O_RDWR);
|
||||
fd = open(name, O_WRONLY);
|
||||
if (fd == -1)
|
||||
return -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user