From c044bdfe326db8330cfd856432a06270d8010184 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sun, 12 May 2013 16:38:31 +0200 Subject: [PATCH] Fix warning --- src/common/servlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/servlist.c b/src/common/servlist.c index 3fd16f7f..02bc5906 100644 --- a/src/common/servlist.c +++ b/src/common/servlist.c @@ -995,7 +995,7 @@ servlist_favchan_add (ircnet *net, char *channel) if (strchr (channel, ',') != NULL) { - pos = strchr (channel, ',') - channel; + pos = (int) (strchr (channel, ',') - channel); chan->name = g_strndup (channel, pos); chan->key = g_strdup (channel + pos + 1); }