diff options
author | Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 2010-07-23 13:59:53 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-07-23 17:26:12 -0500 |
commit | ca46f51c2d9366f07721f0f5f8828771a7aa93c5 (patch) | |
tree | f5d528cdd91c57b924ae38d58e93a564bdb76012 /src/smsutil.c | |
parent | 402a4b0750cfffc327e10de38f11eca2a72341d9 (diff) | |
download | ofono-ca46f51c2d9366f07721f0f5f8828771a7aa93c5.tar.bz2 |
introduce DECLARE_SMS_ADDR_STR()
Introduce DECLARE_SMS_ADDR_STR(), which declares a string variable of
the right size for passing to sms_assembly_decode_address(). This way
we detach each client having to have the knowledge of what the right
size is, leaving that decission to the infrastructure
provider. Updated couple of sites in smsutil.c to use it vs a raw
declaration.
Diffstat (limited to 'src/smsutil.c')
-rw-r--r-- | src/smsutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smsutil.c b/src/smsutil.c index e41c0416..8d620f2b 100644 --- a/src/smsutil.c +++ b/src/smsutil.c @@ -2314,7 +2314,7 @@ static void sms_assembly_load(struct sms_assembly *assembly, const struct dirent *dir) { struct sms_address addr; - char straddr[25]; + DECLARE_SMS_ADDR_STR(straddr); guint16 ref; guint8 max; guint8 seq; @@ -2391,7 +2391,7 @@ static gboolean sms_assembly_store(struct sms_assembly *assembly, { unsigned char buf[177]; int len; - char straddr[25]; + DECLARE_SMS_ADDR_STR(straddr); if (!assembly->imsi) return FALSE; |