summaryrefslogtreecommitdiffstats
path: root/src/ppartseln.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ppartseln.c')
-rw-r--r--src/ppartseln.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ppartseln.c b/src/ppartseln.c
index e134f1b..da3dced 100644
--- a/src/ppartseln.c
+++ b/src/ppartseln.c
@@ -115,9 +115,8 @@ void menu_photorec(struct ph_param *params, struct ph_options *options, alloc_da
}
if(params->cmd_run!=NULL)
{
- while(params->cmd_run[0]==',')
- params->cmd_run++;
- if(strncmp(params->cmd_run,"inter",5)==0)
+ skip_comma_in_command(&params->cmd_run);
+ if(check_command(&params->cmd_run,"inter",5)==0)
{ /* Start interactive mode */
params->cmd_run=NULL;
}