diff mbox series

[16/22] simutil: Remove use of g_strlcpy

Message ID 20240226033724.1460079-16-denkenz@gmail.com (mailing list archive)
State Superseded, archived
Headers show
Series [01/22] gprs: Remove g_strfreev and g_strdupv use | expand

Commit Message

Denis Kenzior Feb. 26, 2024, 3:36 a.m. UTC
Replace with l_strlcpy
---
 src/simutil.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/src/simutil.c b/src/simutil.c
index 7345f38db571..a4a8f8c4b230 100644
--- a/src/simutil.c
+++ b/src/simutil.c
@@ -982,8 +982,8 @@  gboolean sim_spdi_lookup(struct sim_spdi *spdi,
 	if (spdi == NULL)
 		return FALSE;
 
-	g_strlcpy(spdi_op.mcc, mcc, sizeof(spdi_op.mcc));
-	g_strlcpy(spdi_op.mnc, mnc, sizeof(spdi_op.mnc));
+	l_strlcpy(spdi_op.mcc, mcc, sizeof(spdi_op.mcc));
+	l_strlcpy(spdi_op.mnc, mnc, sizeof(spdi_op.mnc));
 
 	return g_slist_find_custom(spdi->operators, &spdi_op,
 					spdi_operator_compare) != NULL;