This ensures that the process will show the correct command line in ps
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
+ optarg = strdup(optarg);
bound += add_listener_arg(optarg, (ch == 's'));
break;
bound += add_listener_arg(optarg, (ch == 's'));
break;
+ optarg = strdup(optarg);
port = strchr(optarg, '=');
if (optarg[0] != '.' || !port) {
fprintf(stderr, "Error: Invalid interpreter: %s\n",
port = strchr(optarg, '=');
if (optarg[0] != '.' || !port) {
fprintf(stderr, "Error: Invalid interpreter: %s\n",
+ optarg = strdup(optarg);
port = alloca(strlen(optarg) + 1);
if (!port)
return -1;
port = alloca(strlen(optarg) + 1);
if (!port)
return -1;