summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/isc/task.c
diff options
context:
space:
mode:
authortodd <todd@openbsd.org>2003-06-27 19:08:22 +0000
committertodd <todd@openbsd.org>2003-06-27 19:08:22 +0000
commit44c5f86991d56e224338eb71979bd544d0147a1c (patch)
tree22fdcdd89735d8b7d3b44281e8beec96481ae936 /usr.sbin/bind/lib/isc/task.c
parentprotos for userland build (diff)
downloadwireguard-openbsd-44c5f86991d56e224338eb71979bd544d0147a1c.tar.xz
wireguard-openbsd-44c5f86991d56e224338eb71979bd544d0147a1c.zip
string cleaning; "Put it in. If it breaks, tough" Theo.
work by me, useful feedback from krw, jakob, tedu, and tholo
Diffstat (limited to 'usr.sbin/bind/lib/isc/task.c')
-rw-r--r--usr.sbin/bind/lib/isc/task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bind/lib/isc/task.c b/usr.sbin/bind/lib/isc/task.c
index cb9a2cb0925..30eeeda2d8f 100644
--- a/usr.sbin/bind/lib/isc/task.c
+++ b/usr.sbin/bind/lib/isc/task.c
@@ -697,7 +697,7 @@ isc_task_setname(isc_task_t *task, const char *name, void *tag) {
#ifdef ISC_TASK_NAMES
LOCK(&task->lock);
memset(task->name, 0, sizeof(task->name));
- strncpy(task->name, name, sizeof(task->name) - 1);
+ strlcpy(task->name, name, sizeof(task->name));
task->tag = tag;
UNLOCK(&task->lock);
#else