Fix strlcpy being passed a length that's too long (#16998)

This commit is contained in:
Eric Warmenhoven 2024-09-13 14:11:24 -04:00 committed by GitHub
parent 381c3a5317
commit 9135065bfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2075,7 +2075,7 @@ static bool video_shader_override_values(config_file_t *override_conf,
fill_pathname_expanded_and_absolute(override_tex_path, override_conf->path, tex_path);
video_shader_replace_wildcards(override_tex_path, PATH_MAX_LENGTH, override_conf->path);
strlcpy(shader->lut[i].path, override_tex_path, PATH_MAX_LENGTH);
strlcpy(shader->lut[i].path, override_tex_path, sizeof(shader->lut[i].path));
#ifdef DEBUG
RARCH_DBG("[Shaders]: Texture: \"%s\" = %s.\n",