commit 96c4299799dc7613094b3fe82b3e3b46ab296fcc
parent 52e590ab776862e9aaba4c34ad9dc704757f7007
Author: Markus Hanetzok <markus@hanetzok.net>
Date: Thu, 20 Jun 2024 17:36:34 +0200
replace leftover strcat
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sds.c b/sds.c
@@ -171,7 +171,8 @@ int main(int argc, char *argv[]) {
curl_easy_cleanup(curl);
}
- strcat(response, "</ul></html>");
+ snprintf(response + strlen(response), BUFFER_SIZE - strlen(response),
+ "</ul></html>");
writeresponse(response, clientfd, strlen(response));
}