Skip to content

Commit

Permalink
Fix strlcpy being passed a length that's too long (#16998)
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven authored Sep 13, 2024
1 parent 381c3a5 commit 9135065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gfx/video_shader_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9135065

Please sign in to comment.