bin/main: fix infinite loop case.

when user launch enventor with command line option "-to xxx.edc",
it falls in infinite loop.

now its fixed.
This commit is contained in:
ChunEon Park 2015-03-01 02:37:24 +09:00
parent a22815cbfd
commit cb339befe2
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,6 @@ args_dispatch(int argc, char **argv, char *edc_path, char *img_path,
}
else goto defaults;
//edc image path
int cur_arg = 2;
while (cur_arg < argc)
@ -351,6 +350,7 @@ args_dispatch(int argc, char **argv, char *edc_path, char *img_path,
sprintf(dat_path, "%s", argv[cur_arg + 1]);
cur_arg += 2;
}
++cur_arg;
}
defaults: