diff options
author | Marc Petit-Huguenin <petithug@gmail.com> | 2010-07-14 12:33:15 -0700 |
---|---|---|
committer | Marc Petit-Huguenin <petithug@gmail.com> | 2010-07-27 17:23:41 -0700 |
commit | a1b379c65f787fc85bd9c6f4a6d14d8a2bebc9d5 (patch) | |
tree | 7b3e7fb07704a507f0914e8e6290546b59045934 /telephony/sms.c | |
parent | 657a3521a1f4d354b57f0e524b1cd57bed177bb0 (diff) | |
download | external_qemu-a1b379c65f787fc85bd9c6f4a6d14d8a2bebc9d5.zip external_qemu-a1b379c65f787fc85bd9c6f4a6d14d8a2bebc9d5.tar.gz external_qemu-a1b379c65f787fc85bd9c6f4a6d14d8a2bebc9d5.tar.bz2 |
Make the GSM simulator more realistic
- The phone number of the phone is now built by concatenating "1555521"
to the console port.
- Convert number in remote call by concatenating "1555521" to the port
number.
- Convert called number to a number starting with "1555521".
- Fixed a bug in sms_address_to_str where the length returned is
incorrect is the length of the phone number to convert is odd.
Change-Id: Iefbdd866b6e41f6086c6e0cc33026551e3d5ae8f
Diffstat (limited to 'telephony/sms.c')
-rw-r--r-- | telephony/sms.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/telephony/sms.c b/telephony/sms.c index 448eab4..50ef715 100644 --- a/telephony/sms.c +++ b/telephony/sms.c @@ -353,7 +353,8 @@ sms_address_to_str( SmsAddress address, char* str, int strlen ) if (count < strlen) str[count] = dialdigits[(c >> 4) & 0xf]; - count += 1; + if (str[count]) + count += 1; } return count; } |