Auto-Merge pull request #2539 from octo/cid/179243
authorcollectd bot <32910397+collectd-bot@users.noreply.github.com>
Fri, 17 Nov 2017 13:16:58 +0000 (14:16 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Nov 2017 13:16:58 +0000 (14:16 +0100)
Automatically merged due to "Automerge" label

src/ovs_events.c

index afa1199..bf457fd 100644 (file)
@@ -253,8 +253,8 @@ static int ovs_events_plugin_config(oconfig_item_t *ci) {
         ovs_events_config_free();
         return -1;
       }
-      strncpy(ovs_events_ctx.config.ovs_db_serv, service,
-              sizeof(ovs_events_ctx.config.ovs_db_serv));
+      sstrncpy(ovs_events_ctx.config.ovs_db_serv, service,
+               sizeof(ovs_events_ctx.config.ovs_db_serv));
       sfree(service);
     } else if (strcasecmp("Socket", child->key) == 0) {
       if (cf_util_get_string_buffer(