correct partition device name

This commit is contained in:
Laurent Vivier 2004-12-21 15:17:04 +00:00
parent a8a3fb19ab
commit 0447e356b5
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,4 @@
static __attribute__((used)) char* rcsid = "$CVSHeader$";
/*
*
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
@ -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)

View File

@ -1,3 +1,4 @@
static __attribute__((used)) char* rcsid = "$CVSHeader$";
/*
*
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
@ -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)