mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-03 13:59:27 -04:00
silence coverity - add nul termination
This commit is contained in:
parent
f5bb5eb7f6
commit
8eb2d262dc
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