summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-09-29 13:46:31 +0200
committerHarald Welte <laforge@gnumonks.org>2013-09-29 13:46:31 +0200
commit0768e7c1ba0e0aacd1fbd38a41e6ac0734c07440 (patch)
tree182a55f0a49a4774db204f9ce6613dc2dbeb839f /include
parent92996ec6d5c1ce22e983be7f3612a1d0c4e894a7 (diff)
libgsmd/sms: make sure we have sufficient space for long MSISDN
warning: breaks ABI
Diffstat (limited to 'include')
-rw-r--r--include/libgsmd/sms.h2
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;
personal git repositories of Harald Welte. Your mileage may vary