mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
correct partition device name
This commit is contained in:
parent
a8a3fb19ab
commit
0447e356b5
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user