Change in libosmocore[master]: grs_ns2_fr: Use OSMO_STRLCPY_ARRAY() where possible

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/.

laforge gerrit-no-reply at lists.osmocom.org
Mon Dec 21 11:41:36 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/21817 )


Change subject: grs_ns2_fr: Use OSMO_STRLCPY_ARRAY() where possible
......................................................................

grs_ns2_fr: Use OSMO_STRLCPY_ARRAY() where possible

Change-Id: I8ce461ecc36a81a4221336e82a36a69f49f89a0a
---
M src/gb/gprs_ns2_fr.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/17/21817/1

diff --git a/src/gb/gprs_ns2_fr.c b/src/gb/gprs_ns2_fr.c
index 1485961..1a6b92f 100644
--- a/src/gb/gprs_ns2_fr.c
+++ b/src/gb/gprs_ns2_fr.c
@@ -471,7 +471,7 @@
 
 	memset(&req, 0, sizeof(struct ifreq));
 	memset(&buffer, 0, sizeof(buffer));
-	osmo_strlcpy(req.ifr_name, netif, IFNAMSIZ);
+	OSMO_STRLCPY_ARRAY(req.ifr_name, netif);
 	req.ifr_settings.ifs_ifsu.sync = (void*)buffer;
 	req.ifr_settings.size = sizeof(buffer);
 	req.ifr_settings.type = IF_GET_PROTO;
@@ -499,7 +499,7 @@
 
 	memset(&req, 0, sizeof(struct ifreq));
 	memset(fr, 0, sizeof(fr_proto));
-	osmo_strlcpy(req.ifr_name, netif, IFNAMSIZ);
+	OSMO_STRLCPY_ARRAY(req.ifr_name, netif);
 	req.ifr_settings.type = IF_PROTO_FR;
 	req.ifr_settings.size = sizeof(fr_proto);
 	req.ifr_settings.ifs_ifsu.fr = fr;

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I8ce461ecc36a81a4221336e82a36a69f49f89a0a
Gerrit-Change-Number: 21817
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201221/af888da6/attachment.htm>


More information about the gerrit-log mailing list