Change in osmo-mgw[master]: libosmo-mgcp: use OSMO_STRLCPY_ARRAY in mgcp_codec_add()

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

fixeria gerrit-no-reply at lists.osmocom.org
Wed Oct 20 21:07:18 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-mgw/+/25865 )


Change subject: libosmo-mgcp: use OSMO_STRLCPY_ARRAY in mgcp_codec_add()
......................................................................

libosmo-mgcp: use OSMO_STRLCPY_ARRAY in mgcp_codec_add()

Change-Id: Icc2486308577b587a6ebd1b44b2fa92693aa7fc7
Fixes: CID#240100
---
M src/libosmo-mgcp/mgcp_codec.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/65/25865/1

diff --git a/src/libosmo-mgcp/mgcp_codec.c b/src/libosmo-mgcp/mgcp_codec.c
index 06dcedc..7ab2a17 100644
--- a/src/libosmo-mgcp/mgcp_codec.c
+++ b/src/libosmo-mgcp/mgcp_codec.c
@@ -176,7 +176,7 @@
 			goto error;
 		}
 	} else {
-		strncpy(codec->audio_name, audio_name, sizeof(codec->audio_name));
+		OSMO_STRLCPY_ARRAY(codec->audio_name, audio_name);
 	}
 
 	/* Now we extract the codec subtype name, rate and channels. The latter

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

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: Icc2486308577b587a6ebd1b44b2fa92693aa7fc7
Gerrit-Change-Number: 25865
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211020/9181ba27/attachment.htm>


More information about the gerrit-log mailing list