diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-09-29 13:46:31 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-09-29 13:46:31 +0200 |
commit | 0768e7c1ba0e0aacd1fbd38a41e6ac0734c07440 (patch) | |
tree | 182a55f0a49a4774db204f9ce6613dc2dbeb839f | |
parent | 92996ec6d5c1ce22e983be7f3612a1d0c4e894a7 (diff) |
libgsmd/sms: make sure we have sufficient space for long MSISDN
warning: breaks ABI
-rw-r--r-- | include/libgsmd/sms.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libgsmd/sms.h b/include/libgsmd/sms.h index 7795394..46348df 100644 --- a/include/libgsmd/sms.h +++ b/include/libgsmd/sms.h @@ -84,7 +84,7 @@ enum lgsm_tp_status { #define LGSM_SMS_ADDR_MAXLEN 12 #define LGSM_SMS_DATA_MAXLEN 140 struct lgsm_sms { - char addr[LGSM_SMS_ADDR_MAXLEN+1]; + char addr[LGSM_SMS_ADDR_MAXLEN*2+1]; /* FIXME: max length of data, * 7 bit coding - 160(140*8/7); ucs2 coding - 70(140/2) */ enum gsmd_sms_alphabet alpha; |