aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-12-21 12:40:45 +0100
committerlaforge <laforge@osmocom.org>2020-12-21 11:41:55 +0000
commitb8de188b5432aa8ae832e5150a4fe26342461336 (patch)
tree239ca94454bd874a021c7b4d1889f37dfff0d84f
parent7f01b686716c7b1724fed9d5fe0bfb349eaa217f (diff)
gprs_ns2_fr: Use OSMO_STRLCPY_ARRAY() where possible
-rw-r--r--src/gb/gprs_ns2_fr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gb/gprs_ns2_fr.c b/src/gb/gprs_ns2_fr.c
index 14859610..1a6b92f7 100644
--- a/src/gb/gprs_ns2_fr.c
+++ b/src/gb/gprs_ns2_fr.c
@@ -471,7 +471,7 @@ static int setup_device(const char *netif)
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 @@ static int setup_device(const char *netif)
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;