diff options
Diffstat (limited to 'src/ipa_proxy.c')
-rw-r--r-- | src/ipa_proxy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ipa_proxy.c b/src/ipa_proxy.c index 0c177a2..6053bb8 100644 --- a/src/ipa_proxy.c +++ b/src/ipa_proxy.c @@ -246,6 +246,7 @@ static int __ipa_instance_add(struct vty *vty, int argc, const char *argv[]) return CMD_WARNING; } strncpy(ipi->name, argv[0], IPA_INSTANCE_NAME); + ipi->name[IPA_INSTANCE_NAME - 1] = '\0'; ipi->net.type = type; ipi->net.addr = talloc_strdup(tall_ipa_proxy_ctx, argv[2]); ipi->net.port = port; |