From 7e83defa576cf34c4aea0da62f6cb95dce8d2408 Mon Sep 17 00:00:00 2001 From: Egor Date: Mon, 2 May 2022 23:38:30 +0300 Subject: [PATCH] fix segfault. this variable was aptly named --- irc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc.c b/irc.c index 5531448..52cae31 100644 --- a/irc.c +++ b/irc.c @@ -257,7 +257,7 @@ void setNick(struct client_data *client, char* nickname, size_t size) { // TODO: perform basic sanitization char *bruh = strchr(nickname, ' '); // FIXME: we should reject those tbh - if (*bruh) + if (bruh) *bruh = 0; // Start GitHub Copilot -- 2.56.0