From c7336baf84c5122bc8377c7a5e836152187bb5cb Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Sat, 16 Feb 2013 15:03:56 +0100 Subject: skype_buddy_action_list: fix missing hangup in help output --- protocols/skype/skype.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/skype/skype.c b/protocols/skype/skype.c index 963406db..94f71965 100644 --- a/protocols/skype/skype.c +++ b/protocols/skype/skype.c @@ -1590,12 +1590,14 @@ GList *skype_buddy_action_list(bee_user_t *bu) bu = bu; if (ret == NULL) { - static const struct buddy_action ba[3] = { + static const struct buddy_action ba[2] = { {"CALL", "Initiate a call" }, {"HANGUP", "Hang up a call" }, }; + int i; - ret = g_list_prepend(ret, (void *) ba + 0); + for (i = 0; i < ARRAY_SIZE(ba); i++) + ret = g_list_prepend(ret, (void *)(ba + i)); } return ret; -- cgit v1.2.3