summaryrefslogtreecommitdiffstats
path: root/src/texfat.c
diff options
context:
space:
mode:
authorMatthew Howle <mdhowle@gmail.com>2015-09-03 10:13:42 -0400
committerMatthew Howle <mdhowle@gmail.com>2015-09-03 10:13:42 -0400
commitfaa272a9198509a9f8e33681b84437686a92b01d (patch)
tree4c1ed939b88f29c47fb005342ca81399b2d8d306 /src/texfat.c
parentad4a40d587c87550b5bcd9920973dd941a6a930d (diff)
Fixed strncmp lengths in exFAT menu
Diffstat (limited to 'src/texfat.c')
-rw-r--r--src/texfat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/texfat.c b/src/texfat.c
index 5b94247..c31c6c8 100644
--- a/src/texfat.c
+++ b/src/texfat.c
@@ -178,15 +178,15 @@ int exFAT_boot_sector(disk_t *disk, partition_t *partition, const int verbose, c
(*current_cmd)+=4;
command='D';
}
- else if(strncmp(*current_cmd,"originalexFAT",11)==0)
+ else if(strncmp(*current_cmd,"originalexFAT",13)==0)
{
- (*current_cmd)+=11;
+ (*current_cmd)+=13;
if(strchr(options,'O')!=NULL)
command='O';
}
- else if(strncmp(*current_cmd,"backupexFAT",9)==0)
+ else if(strncmp(*current_cmd,"backupexFAT",11)==0)
{
- (*current_cmd)+=9;
+ (*current_cmd)+=11;
if(strchr(options,'B')!=NULL)
command='B';
}