mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
more str{n}{cat,cpy} corrections rt45981_stage2
This commit is contained in:
@@ -882,8 +882,7 @@ isc__task_setname(isc_task_t *task0, const char *name, void *tag) {
|
||||
REQUIRE(VALID_TASK(task));
|
||||
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user