aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcommon/gsup_test_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcommon/gsup_test_client.c')
-rw-r--r--src/libcommon/gsup_test_client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcommon/gsup_test_client.c b/src/libcommon/gsup_test_client.c
index 860504067..be8e768ba 100644
--- a/src/libcommon/gsup_test_client.c
+++ b/src/libcommon/gsup_test_client.c
@@ -75,7 +75,7 @@ static struct imsi_op *imsi_op_alloc(void *ctx, const char *imsi,
return NULL;
io = talloc_zero(ctx, struct imsi_op);
- osmo_strlcpy(io->imsi, imsi, sizeof(io->imsi));
+ OSMO_STRLCPY_ARRAY(io->imsi, imsi);
io->type = type;
osmo_timer_setup(&io->timer, imsi_op_timer_cb, io);
llist_add(&io->list, &g_imsi_ops);
@@ -107,7 +107,7 @@ int req_auth_info(const char *imsi)
struct osmo_gsup_message gsup = {0};
struct msgb *msg = msgb_alloc_headroom(1200, 200, __func__);
- osmo_strlcpy(gsup.imsi, io->imsi, sizeof(gsup.imsi));
+ OSMO_STRLCPY_ARRAY(gsup.imsi, io->imsi);
gsup.message_type = OSMO_GSUP_MSGT_SEND_AUTH_INFO_REQUEST;
osmo_gsup_encode(msg, &gsup);
@@ -122,7 +122,7 @@ int req_loc_upd(const char *imsi)
struct osmo_gsup_message gsup = {0};
struct msgb *msg = msgb_alloc_headroom(1200, 200, __func__);
- osmo_strlcpy(gsup.imsi, io->imsi, sizeof(gsup.imsi));
+ OSMO_STRLCPY_ARRAY(gsup.imsi, io->imsi);
gsup.message_type = OSMO_GSUP_MSGT_UPDATE_LOCATION_REQUEST;
osmo_gsup_encode(msg, &gsup);
@@ -135,7 +135,7 @@ int resp_isd(struct imsi_op *io)
struct osmo_gsup_message gsup = {0};
struct msgb *msg = msgb_alloc_headroom(1200, 200, __func__);
- osmo_strlcpy(gsup.imsi, io->imsi, sizeof(gsup.imsi));
+ OSMO_STRLCPY_ARRAY(gsup.imsi, io->imsi);
gsup.message_type = OSMO_GSUP_MSGT_INSERT_DATA_RESULT;
osmo_gsup_encode(msg, &gsup);