diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ulogd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ulogd.c b/src/ulogd.c index 5b9a586..919a317 100644 --- a/src/ulogd.c +++ b/src/ulogd.c @@ -668,7 +668,7 @@ pluginstance_alloc_init(struct ulogd_plugin *pl, char *pi_id, INIT_LLIST_HEAD(&pi->plist); pi->plugin = pl; pi->stack = stack; - memcpy(pi->id, pi_id, sizeof(pi->id)); + strncpy(pi->id, pi_id, ULOGD_MAX_KEYLEN); ptr = (void *)pi + sizeof(*pi); |