summaryrefslogtreecommitdiff
path: root/lib/ptm_lib.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-02-07 15:48:46 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-02-07 15:48:46 +0100
commitfa02c492fad6fb668897a5d5a8115af5ca3bb5e7 (patch)
tree5a58e7280f0187509d4a9fecb4e5b41237b904a1 /lib/ptm_lib.c
parent22e9f17c7f93f0fbc0964eb923c165e4b484c9ed (diff)
parent540263204c64431399662556c9f40aaccf73aba0 (diff)
Merge branch 'frr/pull/152' ("Lib fixes")
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/ptm_lib.c')
-rw-r--r--lib/ptm_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ptm_lib.c b/lib/ptm_lib.c
index 0666797fad..a93d7b8476 100644
--- a/lib/ptm_lib.c
+++ b/lib/ptm_lib.c
@@ -458,7 +458,7 @@ ptm_lib_register(char *client_name,
hdl = calloc(1, sizeof(*hdl));
if (hdl) {
- strcpy(hdl->client_name, client_name);
+ strncpy(hdl->client_name, client_name, PTMLIB_MAXNAMELEN - 1);
hdl->cmd_cb = cmd_cb;
hdl->notify_cb = notify_cb;
hdl->response_cb = response_cb;