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
Jean-Pierre André 2013-02-09 15:04:41 +01:00
parent c73b805062
commit a086683ece
1 changed files with 1 additions and 1 deletions

View File

@ -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) {