change O_RDWR to O_WRONLY

This commit is contained in:
Laurent Vivier 2004-12-23 23:07:45 +00:00
parent ba478e64a2
commit 3275b7c941

View File

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