libosmo-mgcp: use OSMO_STRLCPY_ARRAY in mgcp_codec_add()
Change-Id: Icc2486308577b587a6ebd1b44b2fa92693aa7fc7 Fixes: CID#240100changes/65/25865/1
parent
a0b69f1896
commit
0c04500ac5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue