mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-05 11:29:41 +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);
|
sprintf(name, "%s%d", map->name, map->current + 1);
|
||||||
|
|
||||||
fd = open(name, O_RDWR);
|
fd = open(name, O_WRONLY);
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user