mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-13 09:10:20 +00:00
Fix warning
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user