Fix warning
This commit is contained in:
parent
aac7079562
commit
c044bdfe32
|
@ -995,7 +995,7 @@ servlist_favchan_add (ircnet *net, char *channel)
|
||||||
|
|
||||||
if (strchr (channel, ',') != NULL)
|
if (strchr (channel, ',') != NULL)
|
||||||
{
|
{
|
||||||
pos = strchr (channel, ',') - channel;
|
pos = (int) (strchr (channel, ',') - channel);
|
||||||
chan->name = g_strndup (channel, pos);
|
chan->name = g_strndup (channel, pos);
|
||||||
chan->key = g_strdup (channel + pos + 1);
|
chan->key = g_strdup (channel + pos + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue