diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-23 18:47:11 +0300 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-12-08 16:10:57 +0200 | 
| commit | 6618b8af1de27cce3e86d550833e228b4a7dccc3 (patch) | |
| tree | 91274b79b80a253e3f8beb1b8e794bf8fb17a207 | |
| parent | 647553cd3484eb5b7e0e7225e4bc91b9e441630e (diff) | |
Fix call index mapping (e.g. index 1 == first call in list)
| -rw-r--r-- | audio/telephony-maemo.c | 2 | 
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':  | 
