diff --git a/gfx/video_shader_parse.c b/gfx/video_shader_parse.c index 4367e26317..fa0131f0f4 100644 --- a/gfx/video_shader_parse.c +++ b/gfx/video_shader_parse.c @@ -431,7 +431,7 @@ static void video_shader_replace_wildcards(char *inout_absolute_path, replace_text, replace_len); - strlcpy(replaced_path, replace_output, PATH_MAX_LENGTH); + strlcpy(replaced_path, replace_output, sizeof(replaced_path)); free(replace_output); }