diff options
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; } |