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

laforge gerrit-no-reply at lists.osmocom.org
Thu Oct 21 11:35:59 UTC 2021


laforge has submitted this change. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved



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-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211021/295594b1/attachment.htm>


More information about the gerrit-log mailing list