From 6618b8af1de27cce3e86d550833e228b4a7dccc3 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 23 Oct 2008 18:47:11 +0300 Subject: Fix call index mapping (e.g. index 1 == first call in list) --- audio/telephony-maemo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/telephony-maemo.c b/audio/telephony-maemo.c index 2a4b6502..34a98584 100644 --- a/audio/telephony-maemo.c +++ b/audio/telephony-maemo.c @@ -617,7 +617,7 @@ void telephony_call_hold_req(void *telephony_device, const char *cmd) idx = NULL; if (idx) - call = g_slist_nth_data(calls, strtol(idx, NULL, 0)); + call = g_slist_nth_data(calls, strtol(idx, NULL, 0) - 1); switch (cmd[0]) { case '0': -- cgit