diff --git a/libemile/emile_map_bootblock_read.c b/libemile/emile_map_bootblock_read.c index 1dc010b..f6cced3 100644 --- a/libemile/emile_map_bootblock_read.c +++ b/libemile/emile_map_bootblock_read.c @@ -1,3 +1,4 @@ +static __attribute__((used)) char* rcsid = "$CVSHeader$"; /* * * (c) 2004 Laurent Vivier @@ -22,7 +23,7 @@ int emile_map_bootblock_read(emile_map_t* map, char* bootblock) if (!emile_map_partition_is_valid(map)) return -1; - sprintf(name, "%s%d", map->name, map->current); + sprintf(name, "%s%d", map->name, map->current + 1); fd = open(name, O_RDONLY); if (fd == -1) diff --git a/libemile/emile_map_bootblock_write.c b/libemile/emile_map_bootblock_write.c index ca4296c..f9c609a 100644 --- a/libemile/emile_map_bootblock_write.c +++ b/libemile/emile_map_bootblock_write.c @@ -1,3 +1,4 @@ +static __attribute__((used)) char* rcsid = "$CVSHeader$"; /* * * (c) 2004 Laurent Vivier @@ -22,7 +23,7 @@ int emile_map_bootblock_write(emile_map_t* map, char* bootblock) if (!emile_map_partition_is_valid(map)) return -1; - sprintf(name, "%s%d", map->name, map->current); + sprintf(name, "%s%d", map->name, map->current + 1); fd = open(name, O_RDWR); if (fd == -1)