Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 699faa84 authored by Per Larsen's avatar Per Larsen
Browse files

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
parent 5a6ab7d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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'},