mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 10:20:02 -04:00
silence coverity - add nul termination
(cherry picked from commit 8eb2d262dc)
This commit is contained in:
parent
4f1dedb68e
commit
2ea91c4c5b
1 changed files with 1 additions and 0 deletions
|
|
@ -451,6 +451,7 @@ add(int rdclass, const char *classname, int type, const char *typename,
|
|||
}
|
||||
newcc->rdclass = rdclass;
|
||||
strncpy(newcc->classname, classname, sizeof(newcc->classname));
|
||||
newcc->classname[sizeof(newcc->classname) - 1] = '\0';
|
||||
cc = classes;
|
||||
oldcc = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue