vtenc: Use strlcpy instead of strncpy

Silences a compiler warning, and there's no cross-platform
consideration as this plugin is apple-only

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9058>
This commit is contained in:
Jan Schmidt 2025-05-23 09:16:00 +02:00 committed by GStreamer Marge Bot
parent a61ce97e48
commit 8eb5e3771b

View File

@ -914,7 +914,7 @@ gst_vtenc_h264_parse_profile_level_key (GstVTEnc * self, const gchar * profile,
profile = "main";
if (level_arg == NULL)
level_arg = "AutoLevel";
strncpy (level, level_arg, sizeof (level));
strlcpy (level, level_arg, sizeof (level));
if (!strcmp (profile, "constrained-baseline") ||
!strcmp (profile, "baseline")) {