summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-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);
 	}