From ee6ee0bd34855baf755c57047bb1404ebd930c17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gomez?= Date: Sun, 9 Jan 2022 22:15:46 +0100 Subject: [PATCH] irc_cli_part set cname to proper const char * --- src/irc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/irc.c b/src/irc.c index 3729271..75ad8a3 100644 --- a/src/irc.c +++ b/src/irc.c @@ -1179,12 +1179,12 @@ static int irc_cli_join(struct link_client *irc, struct line *line) static int irc_cli_part(struct link_client *irc, struct line *line) { struct chan_info *ci; - char *cname; + const char *cname; if (irc_line_count(line) != 2 && irc_line_count(line) != 3) return ERR_PROTOCOL; - cname = (char *)irc_line_elem(line, 1); + cname = irc_line_elem(line, 1); if ((ci = hash_remove_if_exists(&LINK(irc)->chan_infos, cname)) != NULL) {