summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libndp/libndp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libndp/libndp.c b/libndp/libndp.c
index 0bc3fe3..e510e2e 100644
--- a/libndp/libndp.c
+++ b/libndp/libndp.c
@@ -1540,7 +1540,7 @@ char *ndp_msg_opt_dnssl_domain(struct ndp_msg *msg, int offset,
return NULL;
if (strlen(buf))
- sprintf(buf, "%s.", buf);
+ strcat(buf, ".");
buf[strlen(buf) + dom_len] = '\0';
memcpy(buf + strlen(buf), ptr, dom_len);
ptr += dom_len;