We dont need to use av_strlcpy - we already have libretro-common

strlcpy
This commit is contained in:
libretroadmin 2025-08-06 03:25:54 +02:00
parent b5530658a4
commit 4f70c5aa2a

View File

@ -824,9 +824,9 @@ static bool ffmpeg_init_muxer_pre(ffmpeg_t *handle)
#if !FFMPEG3
_len = MIN(strlen(handle->params.filename) + 1, PATH_MAX_LENGTH);
ctx->url = (char*)av_malloc(_len);
av_strlcpy(ctx->url, handle->params.filename, _len);
strlcpy(ctx->url, handle->params.filename, _len);
#else
av_strlcpy(ctx->filename, handle->params.filename, sizeof(ctx->filename));
strlcpy(ctx->filename, handle->params.filename, sizeof(ctx->filename));
#endif
if (*handle->config.format)