[wtp] fix argument parsing

* efd9eedd introduced a bug which made -c unusable
This commit is contained in:
Tobias Hintze 2016-09-22 16:15:22 +02:00
parent 247a65c7d5
commit 9d0fe1cc76
1 changed files with 1 additions and 0 deletions

View File

@ -1350,6 +1350,7 @@ static void wtp_handle_argv(int argc, char **argv) {
case 'c': {
if (strlen(optarg) < sizeof(g_configurationfile)) {
strcpy(g_configurationfile, optarg);
break;
} else {
printf("Invalid -%c argument\n", optopt);
exit(1);