diff options
author | Berke Viktor <bviktor@hexchat.org> | 2013-05-12 16:38:31 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2013-05-12 16:38:31 +0200 |
commit | c044bdfe326db8330cfd856432a06270d8010184 (patch) | |
tree | 69fe6f7ee2a6113550018c8ad781634e30b65ef9 | |
parent | aac707956287e89639348edab4c7bd6782efd912 (diff) |
Fix warning
-rw-r--r-- | src/common/servlist.c | 2 |
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); } |