Harald Welte has uploaded this change for review. ( 
https://gerrit.osmocom.org/12917


Change subject: cosmetic: use OSMO_STRLCPY_ARRAY() instead of osmo_strlcpy()
......................................................................

cosmetic: use OSMO_STRLCPY_ARRAY() instead of osmo_strlcpy()

This saves us the extra sizeof().

Change-Id: If329f122017c0c5b5222e46d55f39731c5bdf662
---
M src/mncc.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sip-connector 
refs/changes/17/12917/1

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 @@
                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);
        }

        /*

--
To view, visit https://gerrit.osmocom.org/12917
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sip-connector
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If329f122017c0c5b5222e46d55f39731c5bdf662
Gerrit-Change-Number: 12917
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <lafo...@gnumonks.org>

Reply via email to