diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-10-23 15:23:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-10-23 15:23:09 +0000 |
commit | cf3d6ef0cbda50c9917421213a77097250f3d67b (patch) | |
tree | 1cff039e162cd21a192cce43d3bf7b834ca43c94 /ctrl/libhicnctrl/src/cli.c | |
parent | fba3b02aecd0c20af67b37e9e55e28158e7fc800 (diff) | |
parent | b8eca5937fc110e85d426cefba4feff00a20a04a (diff) |
Merge "[HICN-350] Minor cleanup in control API"
Diffstat (limited to 'ctrl/libhicnctrl/src/cli.c')
-rw-r--r-- | ctrl/libhicnctrl/src/cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ctrl/libhicnctrl/src/cli.c b/ctrl/libhicnctrl/src/cli.c index 6798b5aec..b8e90f40e 100644 --- a/ctrl/libhicnctrl/src/cli.c +++ b/ctrl/libhicnctrl/src/cli.c @@ -147,7 +147,7 @@ parse_options(int argc, char *argv[], hc_command_t * command) switch(command->action) { case ACTION_CREATE: /* NAME TYPE LOCAL_ADDRESS LOCAL_PORT */ - snprintf(command->listener.name, NAME_LEN, "%s", argv[optind++]); + snprintf(command->listener.name, SYMBOLIC_NAME_LEN, "%s", argv[optind++]); // conn type command->listener.type = connection_type_from_str(argv[optind++]); if (command->listener.type == CONNECTION_TYPE_UNDEFINED) @@ -174,7 +174,7 @@ parse_options(int argc, char *argv[], hc_command_t * command) switch(command->action) { case ACTION_CREATE: /* NAME TYPE LOCAL_ADDRESS LOCAL_PORT REMOTE_ADDRESS REMOTE_PORT */ - snprintf(command->connection.name, NAME_LEN, "%s", argv[optind++]); + snprintf(command->connection.name, SYMBOLIC_NAME_LEN, "%s", argv[optind++]); command->connection.type = connection_type_from_str(argv[optind++]); if (command->connection.type == CONNECTION_TYPE_UNDEFINED) goto ERR_PARAM; |