trusty: tipc-test: Fix D argument

The D flag requires an argument so it should be followed by a colon
in sopts. Adding the missing colon is necessary to prevent a segfault.

Test: path/to/tipc-test -D VSOCK:200:1
Bug None

Change-Id: I78119b7e42aba5d30b62d88ff5d94c01dbc2eb64
This commit is contained in:
Per Larsen 2024-10-09 11:23:32 +00:00
parent 5a6ab7d869
commit 699faa849b

View file

@ -67,7 +67,7 @@ static const char *main_ctrl_name = "com.android.ipc-unittest.ctrl";
static const char* receiver_name = "com.android.trusty.memref.receiver";
static const size_t memref_chunk_size = 4096;
static const char* _sopts = "hsvDS:t:r:m:b:B:";
static const char* _sopts = "hsvD:S:t:r:m:b:B:";
/* clang-format off */
static const struct option _lopts[] = {
{"help", no_argument, 0, 'h'},