summaryrefslogtreecommitdiffstats
path: root/src/tntfs.c
diff options
context:
space:
mode:
authorMatthew Howle <mdhowle@gmail.com>2015-09-02 08:58:55 -0400
committerMatthew Howle <mdhowle@gmail.com>2015-09-02 08:58:55 -0400
commiteb1fb3f0aff0a57ab82bf9dc3f4c06c09ce09e6f (patch)
tree7cfd79b79c31bc6f8d2f668b565709218a942bb2 /src/tntfs.c
parent1c413f50f79aa10536d5df543ec98af9bbf63696 (diff)
Fixed strncmp lengths in NTFS boot sector menu
Diffstat (limited to 'src/tntfs.c')
-rw-r--r--src/tntfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tntfs.c b/src/tntfs.c
index 9958c77..a9f1079 100644
--- a/src/tntfs.c
+++ b/src/tntfs.c
@@ -204,15 +204,15 @@ int ntfs_boot_sector(disk_t *disk_car, partition_t *partition, const int verbose
(*current_cmd)+=4;
command='L';
}
- else if(strncmp(*current_cmd,"originalntfs",11)==0)
+ else if(strncmp(*current_cmd,"originalntfs",12)==0)
{
- (*current_cmd)+=11;
+ (*current_cmd)+=12;
if(strchr(options,'O')!=NULL)
command='O';
}
- else if(strncmp(*current_cmd,"backupntfs",9)==0)
+ else if(strncmp(*current_cmd,"backupntfs",10)==0)
{
- (*current_cmd)+=9;
+ (*current_cmd)+=10;
if(strchr(options,'B')!=NULL)
command='B';
}