diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-01-07 15:34:25 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-01-07 15:34:25 +0200 |
commit | 29545f959ba8bb06c47fb928639da56b96b7b451 (patch) | |
tree | 738db5ec82f4890c5423db4b3f080751b51c8e58 /audio | |
parent | ddb7d14acf5a3c125ed5963f8cc3a3fbebd92b43 (diff) |
Fix use of invalid pointer
Diffstat (limited to 'audio')
-rw-r--r-- | audio/telephony-maemo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/telephony-maemo.c b/audio/telephony-maemo.c index 717b60f8..42179523 100644 --- a/audio/telephony-maemo.c +++ b/audio/telephony-maemo.c @@ -557,9 +557,11 @@ void telephony_dial_number_req(void *telephony_device, const char *number) number += 4; flags = CALL_FLAG_PRESENTATION_RESTRICTED; } else if (number[0] == '>') { + const char *location = &number[1]; + number = memory_dial_lookup(strtol(&number[1], NULL, 0)); if (!number) { - error("No number at memory location %s", &number[1]); + error("No number at memory location %s", location); telephony_dial_number_rsp(telephony_device, CME_ERROR_INVALID_INDEX); return; |