Dehardcode size parameter for strlcpy call

This commit is contained in:
libretroadmin 2024-09-13 20:22:20 +02:00
parent 9135065bfc
commit bd8ed67205
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ static void video_shader_replace_wildcards(char *inout_absolute_path,
replace_text, replace_text,
replace_len); replace_len);
strlcpy(replaced_path, replace_output, PATH_MAX_LENGTH); strlcpy(replaced_path, replace_output, sizeof(replaced_path));
free(replace_output); free(replace_output);
} }