Skip to content

Commit

Permalink
ns: use strcat()
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed Dec 22, 2021
1 parent bd6d1a8 commit 36f6a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ns.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ hsk_ns_onrecv(

if (!match) {
char next[HSK_DNS_MAX_NAME] = "\\000.";
memcpy(&next[5], req->name, strlen(req->name));
strcat(next, req->name);
if (family == HSK_DNS_A) {
hsk_resource_to_nsec(
req->name,
Expand Down

0 comments on commit 36f6a44

Please sign in to comment.