mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-16 00:58:14 -05:00
strcpy to memmove, to please analysers
git-svn-id: file:///svn/unbound/trunk@4656 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
5b29f1b3ac
commit
127759b160
1 changed files with 1 additions and 1 deletions
|
|
@ -492,7 +492,7 @@ sentinel_get_keytag(char* start, uint16_t* keytag) {
|
|||
keytag_str = calloc(1, SENTINEL_KEYTAG_LEN + 1 /* null byte */);
|
||||
if(!keytag_str)
|
||||
return 0;
|
||||
strncpy(keytag_str, start, SENTINEL_KEYTAG_LEN);
|
||||
memmove(keytag_str, start, SENTINEL_KEYTAG_LEN);
|
||||
keytag_str[SENTINEL_KEYTAG_LEN] = '\0';
|
||||
*keytag = (uint16_t)strtol(keytag_str, &e, 10);
|
||||
if(!e || *e != '\0') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue