From fe40b53fd00aec45b18f63c376622234bbeab7fa Mon Sep 17 00:00:00 2001 From: Philippe Nunes Date: Sat, 16 Mar 2013 11:36:22 +0100 Subject: [PATCH] Use TAPI_SMS_ENCODED_SCA_LEN_MAX --- src/sms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sms.c b/src/sms.c index cf392db..65c4d1c 100644 --- a/src/sms.c +++ b/src/sms.c @@ -1032,7 +1032,7 @@ gboolean dbus_plugin_sms_notification(struct custom_data *ctx, const char *plugi gchar *sca = NULL; gchar *tpdu = NULL; - sca = g_base64_encode((const guchar *)&(noti->msgInfo.sca[0]), SMS_SMSP_ADDRESS_LEN); + sca = g_base64_encode((const guchar *)&(noti->msgInfo.sca[0]), TAPI_SMS_ENCODED_SCA_LEN_MAX); if (sca == NULL) { dbg("g_base64_encode: Failed to Enocde msgInfo.sca"); sca = ""; -- 2.7.4