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 21:52:46 UTC 2019


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 <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190214/f21733e2/attachment.htm>


More information about the gerrit-log mailing list