tCancel Rust lang. - cancel - free software for cancelling people and organizations HTML git clone https://git.parazyd.org/cancel DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 326b1d515808f8b97fa7a8693bdd405ef0faa911 DIR parent 07df59b31ebe55368155a06b3bdb1b1fb4a27897 HTML Author: parazyd <parazyd@dyne.org> Date: Mon, 29 Mar 2021 23:54:31 +0200 Cancel Rust lang. Diffstat: M cancel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/cancel.c b/cancel.c t@@ -46,7 +46,8 @@ static void lynch(int unused, GtkWidget *entry) addr.sin_addr = *((struct in_addr *)he->h_addr); memset(&(addr.sin_zero), 0, 8); - sprintf(req, "/cancel\t%s\r\n", gtk_entry_get_text(GTK_ENTRY(entry))); + snprintf(req, sizeof(req), "/cancel\t%s\r\n", + gtk_entry_get_text(GTK_ENTRY(entry))); if (connect(sockfd, (struct sockaddr *)&addr, sizeof(struct sockaddr)) == -1) goto out;