- if (!strcmp(argv[i], "--relayd-path")) {
- if (i >= argc - 1) {
- fprintf(stderr, "Missing relayd path\n");
- exit(EXIT_FAILURE);
- }
- relayd_path = argv[++i];
+ size_t relayd_path_arg_len = strlen("--relayd-path=");
+ if (!strncmp(argv[i], "--relayd-path=",
+ relayd_path_arg_len)) {
+ relayd_path = &argv[i][relayd_path_arg_len];