Permalink
Browse files

Fix gcc 8 stringop-truncation warning

  • Loading branch information...
michaelortmann authored and vanosg committed Oct 11, 2018
1 parent 199cf9b commit fb2b648e8d03a4f107ceaca633fd72695647142b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mod/dns.mod/coredns.c
@@ -1053,7 +1053,7 @@ void parserespacket(uint8_t *response, int len)
return;
}
ddebug1(RES_MSG "answered domain is CNAME for: %s", namestring);
strncpy(stackstring, namestring, 1024);
strlcpy(stackstring, namestring, sizeof stackstring);
break;
default:
ddebug2(RES_ERR "Received unimplemented data type: %u (%s)",

0 comments on commit fb2b648

Please sign in to comment.