diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-05-25 19:27:17 +0700 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-05-29 08:48:16 +0000 |
commit | 8b0737fa71ea4b04cee8dc61c79a1f93779e66dc (patch) | |
tree | c6fddf988c8c87313a396e79466ac41d5feb8129 /src/libmsc/msc_t.c | |
parent | 483cea889c776fb556184479d69431054d4e3ae6 (diff) |
Use GSM23003_MSISDN_MAX_DIGITS from libosmogsm
Change-Id: If9eb46b83b6ad45f210b86b46dd416352adcc3ff
Depends on: Idc74f4d94ad44b9fc1b6d43178f5f33d551ebfb1
Diffstat (limited to 'src/libmsc/msc_t.c')
-rw-r--r-- | src/libmsc/msc_t.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmsc/msc_t.c b/src/libmsc/msc_t.c index 8eefccc71..6b96c26ca 100644 --- a/src/libmsc/msc_t.c +++ b/src/libmsc/msc_t.c @@ -75,7 +75,7 @@ static int msc_t_assign_handover_number(struct msc_t *msc_t) int rc; uint64_t started_at; uint64_t ho_nr; - char ho_nr_str[VLR_MSISDN_LENGTH+1]; + char ho_nr_str[GSM23003_MSISDN_MAX_DIGITS+1]; struct gsm_network *net = msc_t_net(msc_t); bool usable = false; @@ -417,7 +417,7 @@ static int msc_t_patch_and_send_ho_request_ack(struct msc_t *msc_t, const struct struct rtp_stream *rtp_cn = msc_t->inter_msc.call_leg? msc_t->inter_msc.call_leg->rtp[RTP_TO_CN] : NULL; /* Since it's BCD, it needs rounded-up half the char* length of an MSISDN plus a type byte. * But no need to introduce obscure math to save a few stack bytes, just have more. */ - uint8_t msisdn_enc_buf[VLR_MSISDN_LENGTH + 1]; + uint8_t msisdn_enc_buf[GSM23003_MSISDN_MAX_DIGITS+1]; /* Copy an_apdu and an_apdu->e_info in "copy-on-write" method, because they are const and we * need to add the Handover Number to e_info. */ const struct ran_handover_request_ack *r = &ran_dec->handover_request_ack; |