Change in libosmocore[master]: gprs_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 12:05:43 UTC 2020


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

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

gprs_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(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



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: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201221/8d4efd93/attachment.htm>


More information about the gerrit-log mailing list