summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-02-14 22:52:21 +0100
committerHarald Welte <laforge@gnumonks.org>2019-02-14 22:52:21 +0100
commite9113f21f6de46df8e24167c783850f8f1662157 (patch)
treedd10edb3d4c0a8fbbd49b6474848d25fa570b33e
parentdb2336a9f5f0104ca0403be4a15b38415bb95e4e (diff)
cosmetic: use OSMO_STRLCPY_ARRAY() instead of osmo_strlcpy()
This saves us the extra sizeof(). Change-Id: If329f122017c0c5b5222e46d55f39731c5bdf662
-rw-r--r--src/mncc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mncc.c b/src/mncc.c
index 5d220ba..0f003bd 100644
--- a/src/mncc.c
+++ b/src/mncc.c
@@ -790,7 +790,7 @@ int mncc_create_remote_leg(struct mncc_connection *conn, struct call *call)
mncc.fields |= MNCC_F_CALLED;
mncc.called.plan = GSM48_NPI_ISDN_E164;
mncc.called.type = GSM48_TON_UNKNOWN;
- osmo_strlcpy(mncc.called.number, call->dest, sizeof(mncc.called.number));
+ OSMO_STRLCPY_ARRAY(mncc.called.number, call->dest);
}
/*