mirror of
https://github.com/libretro/RetroArch.git
synced 2025-12-28 13:31:49 +00:00
We dont need to use av_strlcpy - we already have libretro-common
strlcpy
This commit is contained in:
parent
b5530658a4
commit
4f70c5aa2a
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user