Change in osmo-sip-connector[master]: cosmetic: use OSMO_STRLCPY_ARRAY() instead of osmo_strlcpy()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Feb 14 22:12:50 UTC 2019


Harald Welte has submitted this change and it was merged. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



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: merged
Gerrit-Change-Id: If329f122017c0c5b5222e46d55f39731c5bdf662
Gerrit-Change-Number: 12917
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190214/683075ad/attachment.htm>


More information about the gerrit-log mailing list