cancel

free software for cancelling people and organizations
git clone https://git.parazyd.org/cancel
Log | Files | Refs | README | LICENSE

commit 326b1d515808f8b97fa7a8693bdd405ef0faa911
parent 07df59b31ebe55368155a06b3bdb1b1fb4a27897
Author: parazyd <parazyd@dyne.org>
Date:   Mon, 29 Mar 2021 23:54:31 +0200

Cancel Rust lang.

Diffstat:
Mcancel.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cancel.c b/cancel.c @@ -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;