diff options
author | Christian Hesse <mail@eworm.de> | 2022-01-01 22:18:47 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-01-01 22:19:47 +0100 |
commit | 920915f7553262dc76099e6efbd2af7a61196535 (patch) | |
tree | 38e8e99794560fe8329cf28ae2d0323994622316 | |
parent | 2410242157d35f41c73891a97d50cf6871e3166d (diff) | |
download | dyndhcpd-920915f7553262dc76099e6efbd2af7a61196535.tar.gz dyndhcpd-920915f7553262dc76099e6efbd2af7a61196535.tar.zst |
fix warning/error on format security
-rw-r--r-- | dyndhcpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |