From 920915f7553262dc76099e6efbd2af7a61196535 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sat, 1 Jan 2022 22:18:47 +0100 Subject: fix warning/error on format security --- dyndhcpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dyndhcpd.c b/dyndhcpd.c index 912cd6a..a587ec0 100644 --- a/dyndhcpd.c +++ b/dyndhcpd.c @@ -40,7 +40,7 @@ int replace(char ** config, size_t *length, const char ** tmp, if (strncmp(template, *tmp, templatelength) == 0) { *config = realloc(*config, *length + strlen(value) + 1); - *length += sprintf(*config + *length, value); + *length += sprintf(*config + *length, "%s", value); *tmp += templatelength; return 1; } -- cgit v1.2.3-70-g09d2