libosmo-mgcp: use OSMO_STRLCPY_ARRAY in mgcp_codec_add()

Change-Id: Icc2486308577b587a6ebd1b44b2fa92693aa7fc7
Fixes: CID#240100
This commit is contained in:
Vadim Yanitskiy 2021-10-21 00:07:00 +03:00
parent a0b69f1896
commit 0c04500ac5
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ int mgcp_codec_add(struct mgcp_conn_rtp *conn, int payload_type, const char *aud
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