Fix warning

This commit is contained in:
Berke Viktor 2013-05-12 16:38:31 +02:00
parent aac7079562
commit c044bdfe32

View File

@ -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);
}