aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlibapi
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlibapi')
-rw-r--r--src/vlibapi/api_shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlibapi/api_shared.c b/src/vlibapi/api_shared.c
index 831e863393b..1bb50d43def 100644
--- a/src/vlibapi/api_shared.c
+++ b/src/vlibapi/api_shared.c
@@ -921,7 +921,7 @@ vl_msg_api_add_version (api_main_t * am, const char *string,
{
api_version_t version = {.major = major,.minor = minor,.patch = patch };
ASSERT (strlen (string) < 64);
- strncpy (version.name, string, 64);
+ strncpy (version.name, string, 64 - 1);
vec_add1 (am->api_version_list, version);
}