From: Egor Date: Mon, 2 May 2022 20:38:30 +0000 (+0300) Subject: fix segfault. this variable was aptly named X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=7e83defa576cf34c4aea0da62f6cb95dce8d2408;p=patchyircd.git fix segfault. this variable was aptly named --- 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