Fixed setting a magic header to unreadable sectors in ntfsclone
The magic header of an unreadable sectors should have the size of "BadSectoR", not the size of a pointer to it.edge.strict_endians
parent
c73b805062
commit
a086683ece
|
@ -677,7 +677,7 @@ static int io_all(void *fd, void *buf, int count, int do_write)
|
|||
|
||||
static void rescue_sector(void *fd, off_t pos, void *buff)
|
||||
{
|
||||
const char *badsector_magic = "BadSectoR\0";
|
||||
const char badsector_magic[] = "BadSectoR";
|
||||
struct ntfs_device *dev = fd;
|
||||
|
||||
if (opt.restore_image) {
|
||||
|
|
Loading…
Reference in New Issue