summaryrefslogtreecommitdiffstats
path: root/src/phrecn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-04-07 07:26:07 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2017-04-07 07:26:07 +0200
commit821d1e698a15c29b3c20b4585c804e96ba317784 (patch)
treeef5c4825e1bfbde00261b42b26090e5a7aa26d02 /src/phrecn.c
parent68c3977f82ec291f688fe2158630d0cb724f337a (diff)
PhotoRec: fix length for "status=ext2_on_save_everything" and "status=ext2_off_save_everything"
Diffstat (limited to 'src/phrecn.c')
-rw-r--r--src/phrecn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/phrecn.c b/src/phrecn.c
index 9057632..6d8f82f 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -253,10 +253,10 @@ int photorec(struct ph_param *params, const struct ph_options *options, alloc_da
params->status=STATUS_EXT2_ON_BF;
params->cmd_run+=17;
}
- else if(strncmp(params->cmd_run,"status=ext2_on_save_everything",33)==0)
+ else if(strncmp(params->cmd_run,"status=ext2_on_save_everything",30)==0)
{
params->status=STATUS_EXT2_ON_SAVE_EVERYTHING;
- params->cmd_run+=33;
+ params->cmd_run+=30;
}
else if(strncmp(params->cmd_run,"status=ext2_on",14)==0)
{
@@ -268,10 +268,10 @@ int photorec(struct ph_param *params, const struct ph_options *options, alloc_da
params->status=STATUS_EXT2_OFF_BF;
params->cmd_run+=18;
}
- else if(strncmp(params->cmd_run,"status=ext2_off_save_everything",34)==0)
+ else if(strncmp(params->cmd_run,"status=ext2_off_save_everything",31)==0)
{
params->status=STATUS_EXT2_OFF_SAVE_EVERYTHING;
- params->cmd_run+=34;
+ params->cmd_run+=31;
}
else if(strncmp(params->cmd_run,"status=ext2_off",15)==0)
{