summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-05-12 16:38:31 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-05-12 16:38:31 +0200
commitc044bdfe326db8330cfd856432a06270d8010184 (patch)
tree69fe6f7ee2a6113550018c8ad781634e30b65ef9
parentaac707956287e89639348edab4c7bd6782efd912 (diff)
Fix warning
-rw-r--r--src/common/servlist.c2
1 files changed, 1 insertions, 1 deletions
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);
 	}