aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-01-01 22:18:47 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-01-01 22:19:47 +0100
commit920915f7553262dc76099e6efbd2af7a61196535 (patch)
tree38e8e99794560fe8329cf28ae2d0323994622316
parent2410242157d35f41c73891a97d50cf6871e3166d (diff)
downloaddyndhcpd-920915f7553262dc76099e6efbd2af7a61196535.tar.gz
dyndhcpd-920915f7553262dc76099e6efbd2af7a61196535.tar.zst
fix warning/error on format security
-rw-r--r--dyndhcpd.c2
1 files changed, 1 insertions, 1 deletions
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;
}