summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-23 18:47:11 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-12-08 16:10:57 +0200
commit6618b8af1de27cce3e86d550833e228b4a7dccc3 (patch)
tree91274b79b80a253e3f8beb1b8e794bf8fb17a207 /audio
parent647553cd3484eb5b7e0e7225e4bc91b9e441630e (diff)
Fix call index mapping (e.g. index 1 == first call in list)
Diffstat (limited to 'audio')
-rw-r--r--audio/telephony-maemo.c2
1 files changed, 1 insertions, 1 deletions
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':